Issue #17134 has been updated by Glass_saga (Masaki Matsushita).

Target version changed from 2.8 to 3.0

It receives `resolv_timeout` as a keyword argument to specify name resolution timeout.

Example:
```ruby
# it raises SocketError if name resolution is not finished within resolve_timeout.
tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)
```

----------------------------------------
Feature #17134: Add resolv_timeout to TCPSocket
https://bugs.ruby-lang.org/issues/17134#change-87646

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

https://github.com/ruby/ruby/pull/3472

---Files--------------------------------
resolv_timeout.patch (6.07 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>