You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transport: Improve TCP server error messages (#1372)
The TCP server can fail connections in a few situations:
* `accept(2)` can fail
* setting thte TCP keepalive can fail
* getting the client peer address can fail
It's not easy to differentiate these errors when inspecting proxy logs.
This change adds wrapper error types with custom error messages that
disambiguate the error cause and updates the `Bind` trait to use boxed
error types (instead of `io::Error`).
Additionally, this change includes the client address when logging
information/warnings about connection errors in general. This is
redundant when logging is set at debug, but will be helpful when logging
is set at the normal level.
0 commit comments