ruby-changes:30116
From: naruse <ko1@a...>
Date: Thu, 25 Jul 2013 17:54:43 +0900 (JST)
Subject: [ruby-changes:30116] naruse:r42168 (trunk): * lib/net/http.rb (Net::HTTP#connect): disable Nagle's algorithm on
naruse 2013-07-25 17:54:32 +0900 (Thu, 25 Jul 2013) New Revision: 42168 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42168 Log: * lib/net/http.rb (Net::HTTP#connect): disable Nagle's algorithm on HTTP connection. [ruby-core:56158] [Feature #8681] Modified files: trunk/ChangeLog trunk/lib/net/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 42167) +++ ChangeLog (revision 42168) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jul 25 17:53:18 2013 NARUSE, Yui <naruse@r...> + + * lib/net/http.rb (Net::HTTP#connect): disable Nagle's algorithm on + HTTP connection. [ruby-core:56158] [Feature #8681] + Thu Jul 25 17:49:42 2013 NARUSE, Yui <naruse@r...> * re.c (rb_reg_to_s): convert closing parenthes to the target encoding Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 42167) +++ lib/net/http.rb (revision 42168) @@ -877,6 +877,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L877 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/