Closed ctucker-sri closed 1 year ago
Connection failure and timeout in TCPSocket constructor leaves socket file descriptor open when it throws.
Adds code to catch errors in TCPSocket constructor; close socket; and re-throw.
Saw this failure on Linux with code that was retrying a connection. Linux eventually runs out of file descriptors.
Thanks for the fix.
Connection failure and timeout in TCPSocket constructor leaves socket file descriptor open when it throws.
Adds code to catch errors in TCPSocket constructor; close socket; and re-throw.
Saw this failure on Linux with code that was retrying a connection. Linux eventually runs out of file descriptors.