Project

General

Profile

Feature #17187

Add connect_timeout to TCPSocket

Added by Glass_saga (Masaki Matsushita) 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
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
ruby3-socksocket-fix.patch (361 Bytes) ruby3-socksocket-fix.patch A quick patch to fix the compilation of official Ruby 3.0.0 PhobosK (Phobos Kappa), 12/28/2020 02:48 PM

Related issues

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

Also available in: Atom PDF