ActionsLike0
Feature #17134
openAdd resolv_timeout to TCPSocket
Status:
Open
Assignee:
-
Target version:
-
Description
Add resolve_timeout to TCPSocket.new.
It makes DNS timeout customizable in the same way as Socket.tcp.
Files
Updated by ko1 (Koichi Sasada) over 4 years ago
Could you describe API changes more?
Updated by Glass_saga (Masaki Matsushita) over 4 years ago
- Target version changed from 36 to 3.0
It receives resolv_timeout
as a keyword argument to specify name resolution timeout.
Example:
# it raises SocketError if name resolution is not finished within resolve_timeout.
tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)
Updated by Glass_saga (Masaki Matsushita) over 4 years ago
- Status changed from Open to Closed
Applied in changeset git|511fe23fa2bdf1f17faa91e0558be47b5bb62b2a.
Add resolve_timeout to TCPSocket [Feature #17134]
Updated by hsbt (Hiroshi SHIBATA) over 2 years ago
- Status changed from Open to Closed
Applied in changeset git|c8bfbbc25e4bc7c3ff59fae40471923a2793ba48.
Removed documentation for incomplete option about [Feature #17134]
ActionsLike0