From: glass.saga@... Date: 2020-12-29T06:56:53+00:00 Subject: [ruby-core:101804] [Ruby master Feature#17187] Add connect_timeout to TCPSocket Issue #17187 has been updated by Glass_saga (Masaki Matsushita). @PhobosK Many thanks for reporting the issue! I merged your patch. ---------------------------------------- Feature #17187: Add connect_timeout to TCPSocket https://bugs.ruby-lang.org/issues/17187#change-89631 * Author: Glass_saga (Masaki Matsushita) * Status: Closed * Priority: Normal * Assignee: Glass_saga (Masaki Matsushita) ---------------------------------------- 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) ruby3-socksocket-fix.patch (361 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: