From: shevegen@... Date: 2018-02-02T00:35:19+00:00 Subject: [ruby-core:85331] [Ruby trunk Feature#14430] net/http: use Socket.tcp with connect_timeout, instead of TCPSocket.open wrapped in Timeout.timeout Issue #14430 has been updated by shevegen (Robert A. Heiler). > implement Timeout in the VM itself so it doesn't need > to create a temporary thread. There be dragons hiding in the VM. \o/ ---------------------------------------- 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#change-70117 * 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: