Project

General

Profile

Feature #17187

Add connect_timeout to TCPSocket

Added by Glass_saga (Masaki Matsushita) 30 days ago. Updated 30 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:100139]

Description

Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.

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

Files

connect_timeout.patch (8.93 KB) connect_timeout.patch Glass_saga (Masaki Matsushita), 09/25/2020 11:16 AM

Related issues

Related to Ruby master - Feature #16381: Accept resolv_timeout in Net::HTTPOpenActions
Related to Ruby master - Feature #17134: Add resolv_timeout to TCPSocketClosedActions
#2

Updated by Glass_saga (Masaki Matsushita) 30 days ago

#3

Updated by Glass_saga (Masaki Matsushita) 30 days ago

Also available in: Atom PDF