diff options
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index a179dcf348..44c123b0e3 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -877,7 +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) + s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) D "opened" if use_ssl? ssl_parameters = Hash.new |