Project

General

Profile

Actions

Feature #17187

closed

Add connect_timeout to TCPSocket

Added by Glass_saga (Masaki Matsushita) about 4 years ago. Updated almost 4 years ago.

Status:
Closed
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 2 (2 open0 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0