2 suggestions
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Optional improvements
[suggestion] · ConnErrorEventFlag unnecessarily depends on RecvEvent
Waiting with SendEvent | ConnErrorEventFlag would omit failed-connect notification on Windows because exception monitoring also requires RecvEvent; no current caller using that combination was found.
Location: src/util/sock.cpp:223 (head).
Details and suggested fix
In the select() backend, exception-set registration is nested inside the RecvEvent branch. The header documents this restriction, but the explicit opt-in no longer needs that coupling. A send-only connect wait with the flag would therefore wait until its timeout on a Windows connection failure, whereas poll() reports errors regardless of the requested readiness events. Register the socket in the exception set whenever ConnErrorEventFlag is present, include the flag in the socket_max condition, and remove the documented receive-event dependency. This removes ineffective flag combinations while preserving ConnectToSocket behavior and leaving unflagged established sockets unchanged.
[suggestion] · Early error disconnects lose OS error details
The early poll() error branches replace OS error details with generic messages in -debug=net and -debug=http logs, reducing diagnostic information without changing the disconnect decision.
Location: src/net.cpp:2212 (head).
Details and suggested fix
For a Linux peer with receiving paused and output pending, a reset reported with write readiness and an error or hangup previously reached SocketSendData, whose permanent send() failure logged NetworkErrorString(nErr). The new branch closes the socket before that operation and logs only a generic error-or-hangup message. The HTTP branch similarly bypasses Receive() and its permanent-read-error detail. Before disconnecting, query SO_ERROR under the appropriate socket mutex and append NetworkErrorString(err) when the query succeeds with a nonzero error. Keep the generic message for a plain hangup with no pending error.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Platform-specific exception registration lacks regression coverage (earlier report)
- [suggestion]: The poll error comment conflates requested and returned POLLIN (earlier report)