ruby/test/socket
Misaki Shioi ba490059b4
[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://bugs.ruby-lang.org/issues/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`
2025-07-17 18:15:19 +09:00
..
test_addrinfo.rb Make Addrinfo objects Ractor shareable 2025-05-20 18:04:37 -07:00
test_ancdata.rb
test_basicsocket.rb
test_nonblock.rb
test_socket.rb Add open_timeout as an overall timeout option for Socket.tcp (#13368) 2025-06-14 09:54:34 +09:00
test_sockopt.rb
test_tcp.rb [Feature #21347] Add open_timeout as an overall timeout option for TCPSocket.new (#13909) 2025-07-17 18:15:19 +09:00
test_udp.rb
test_unix.rb Reduce the number of times IO is passed in send_io/recv_io test 2023-10-25 20:37:21 +09:00