[Feature #21347] Add open_timeout as an overall timeout option for TCPSocket.new (#13909)
[Feature #21347] Add open_timeout as an overall timeout option for TCPSocket.new
With this change, TCPSocket.new now accepts the open_timeout option. This option raises an exception if the specified number of seconds has elapsed since the start of the method call, even if the operation is still in the middle of name resolution or connection attempts.
[Feature #21347] Add
open_timeout
as an overall timeout option forTCPSocket.new
(#13909)open_timeout
as an overall timeout option forTCPSocket.new
With this change,
TCPSocket.new
now accepts theopen_timeout
option.This option raises an exception if the specified number of seconds has elapsed since the start of the method call,
even if the operation is still in the middle of name resolution or connection attempts.
The addition of this option follows the same intent as the previously merged change to
Socket.tcp
.Feature #21347
https://github.com/ruby/ruby/pull/13368
Tidy up: Extract rsock_raise_user_specified_timeout()
Added a note to the documentation of
Socket.tcp
Fix
rsock_init_inetsock
forFAST_FALLBACK_INIT_INETSOCK_IMPL