Issue #17187 has been reported by Glass_saga (Masaki Matsushita).

----------------------------------------
Feature #17187: Add connect_timeout to TCPSocket
https://bugs.ruby-lang.org/issues/17187

* Author: Glass_saga (Masaki Matsushita)
* Status: Open
* Priority: Normal
* Target version: 3.0
----------------------------------------
Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.

```ruby
TCPSocket.new("192.0.2.1", 1234, connect_timeout: 1) #=> raise Errno::ETIMEDOUT
```

---Files--------------------------------
connect_timeout.patch (8.93 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>