From: carl.hoerberg@... Date: 2018-02-01T12:51:59+00:00 Subject: [ruby-core:85324] [Ruby trunk Feature#14430] net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout Issue #14430 has been reported by carl.hoerberg (Carl H��rberg). ---------------------------------------- Feature #14430: net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout https://bugs.ruby-lang.org/issues/14430 * Author: carl.hoerberg (Carl H��rberg) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Instead of using TCPSocket.open, wrapped in Timeout.timeout, that will create a temporary thread. By using Socket.tcp with the connect_timeout argument for open_timeout the connection opening is much more efficient as the kernels timeout is used instead. PR at: https://github.com/ruby/ruby/pull/1806 -- https://bugs.ruby-lang.org/ Unsubscribe: