* lib/net/http.rb (Net::HTTP#connect): disable Nagle's algorithm on

HTTP connection. [ruby-core:56158] [Feature #8681]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-07-25 08:54:32 +00:00
parent 6be6666fba
commit 67d05682b0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Jul 25 17:53:18 2013 NARUSE, Yui <naruse@ruby-lang.org>
* 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@ruby-lang.org>
* re.c (rb_reg_to_s): convert closing parenthes to the target encoding

View File

@ -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