Add resolv_timeout to TCPSocket
Add resolve_timeout to TCPSocket.new.
It makes DNS timeout customizable in the same way as Socket.tcp.
Updated by Glass_saga (Masaki Matsushita) 7 months ago
- Target version changed from 36 to 3.0
resolv_timeout as a keyword argument to specify name resolution timeout.
# it raises SocketError if name resolution is not finished within resolve_timeout. tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)