summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorMisaki Shioi <31817032+shioimm@users.noreply.github.com>2024-11-25 14:10:54 +0900
committerGitHub <noreply@github.com>2024-11-25 14:10:54 +0900
commitff5fc4b5a13e0833d306d472a0a7633f6b838f86 (patch)
treeb3260649a358a743c7fb271386034ea4f4727066 /test/ruby
parentb305df8c78d7c71ec8cfb96c74fa44d24797e7e9 (diff)
Do not save the last error without sockets in the connection attempt (#12153)
* Do not save the last_error if there are no sockets waiting to be connected In this implementation, the results of both name resolution and connection attempts are awaited using select(2). When it returned, the implementation attempted to check for connections even if there were no sockets currently attempting to connect, treating the absence of connected sockets as a connection failure. With this fix, it will no longer check for connections when there are no sockets waiting to be connected. Additionally, the following minor fixes have been made: * Handle failure of getsockopt(2) and removed unnecessary continue in the loop * Tweak: Use common API to check in_progress_fds * Safely call TCPServer.new in test * Set empty writefds when there is no socket waiting to be connected * Enable fast_fallback option
Notes
Notes: Merged-By: shioimm <shioi.mm@gmail.com>
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions