API: also log error behind "No data received on new API connection"#9928
API: also log error behind "No data received on new API connection"#9928
Conversation
|
This simplifies debugging, just like here:
|
|
Btw. the API as such still works, even for small HTTP 1.0 requests which close the connection: As expected. async_fill() requires only "some" data after all. |
|
Even a clean shutdown works as expected: |
82110a9 to
a365079
Compare
There was a problem hiding this comment.
Prefixing these with Error doesn't seem appropriate because their corresponding log level isn't marked as such. I suggest appending the extra hints within parentheses to the log entries. Additionally, I was only able to trigger those two error cases, which are quite trivial, so I am unsure if there are other scenarios that would trigger that error condition.
[2024-11-12 09:30:53 +0100] warning/ApiListener: No data received on new API connection from [::1]:54558 for identity 'satellite'. Ensure that the remote endpoints are properly configured in a cluster setup. Error: Operation canceled
[2024-11-12 09:32:06 +0100] warning/ApiListener: No data received on new API connection from [::1]:54763 for identity 'satellite'. Ensure that the remote endpoints are properly configured in a cluster setup. Error: End of fileThere was a problem hiding this comment.
(openssl s_client -connect 127.0.0.1:5665 & sleep 2 && kill -9 $!)[2024-11-12 11:11:32 +0100] information/ApiListener: No data received on new API connection from [::ffff:127.0.0.1]:55668: short read. Ensure that the remote endpoints are properly configured in a cluster setup.
There was a problem hiding this comment.
a365079 to
80a4567
Compare
oxzi
left a comment
There was a problem hiding this comment.
LGTM. Please rebase to make the CI happy.
80a4567 to
411c57a
Compare
No description provided.