Project

General

Profile

« Previous | Next » 

Revision ba490059

Added by Misaki Shioi 3 months ago

[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.

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 for FAST_FALLBACK_INIT_INETSOCK_IMPL