From: matz@... Date: 2020-10-26T05:00:21+00:00 Subject: [ruby-core:100550] [Ruby master Feature#17187] Add connect_timeout to TCPSocket Issue #17187 has been updated by matz (Yukihiro Matsumoto). Accepted. Matz. ---------------------------------------- Feature #17187: Add connect_timeout to TCPSocket https://bugs.ruby-lang.org/issues/17187#change-88179 * Author: Glass_saga (Masaki Matsushita) * Status: Open * Priority: Normal * Target version: 3.0 ---------------------------------------- Add connect_timeout to TCPSocket.new in the same way as Socket.tcp. ```ruby TCPSocket.new("192.0.2.1", 1234, connect_timeout: 1) #=> raise Errno::ETIMEDOUT ``` ---Files-------------------------------- connect_timeout.patch (8.93 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: