diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index a383ff617f..a179dcf348 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -877,6 +877,7 @@ module Net #:nodoc: s = Timeout.timeout(@open_timeout, Net::OpenTimeout) { TCPSocket.open(conn_address, conn_port, @local_host, @local_port) } + s.setsockopt(IPPROTO_TCP, TCP_NODELAY, 1) D "opened" if use_ssl? ssl_parameters = Hash.new |