Closed zerikv closed 4 years ago
I'm going to create a new PR based on this one to resolve the merge conflict, and to change the default connectionTimeout to match the previous behaviour.
I suggest we close this PR and replace it with #113 , which builds on this.
@zerikv this has now been picked up as part of #113, so I'll close this now
This PR allows to configure the two timeouts applied on the socket: for connection and read (SO_TIMEOUT).
It's desirable to be able to configure the connection timeout to avoid waiting until the TCP handshake timeout applied by the system (e.g. on Windows 21 seconds by default) for use cases where the remote host can be down. The configuration of the receive timeout is also included even it was not really necessary because a default value was already automaically calculated from the operationTimeout (by adding 1 minute).