ruby-changes:51409
From: naruse <ko1@a...>
Date: Sat, 9 Jun 2018 02:20:39 +0900 (JST)
Subject: [ruby-changes:51409] naruse:r63615 (trunk): write_timeout doc upates [skip ci]
naruse 2018-06-09 02:20:20 +0900 (Sat, 09 Jun 2018) New Revision: 63615 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63615 Log: write_timeout doc upates [skip ci] From: MSP-Greg <MSP-Greg@u...> fix https://github.com/ruby/ruby/pull/1885 Modified files: trunk/lib/net/http.rb trunk/lib/net/protocol.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 63614) +++ lib/net/http.rb (revision 63615) @@ -742,10 +742,11 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L742 # it raises a Net::ReadTimeout exception. The default value is 60 seconds. attr_reader :read_timeout - # Number of seconds to wait for one block to be write (via one write(2) + # Number of seconds to wait for one block to be written (via one write(2) # call). Any number may be used, including Floats for fractional # seconds. If the HTTP object cannot write data in this many seconds, # it raises a Net::WriteTimeout exception. The default value is 60 seconds. + # Net::WriteTimeout is not raised on Windows. attr_reader :write_timeout # Maximum number of times to retry an idempotent request in case of Index: lib/net/protocol.rb =================================================================== --- lib/net/protocol.rb (revision 63614) +++ lib/net/protocol.rb (revision 63615) @@ -79,7 +79,7 @@ module Net # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/protocol.rb#L79 ## # WriteTimeout, a subclass of Timeout::Error, is raised if a chunk of the - # response cannot be write within the write_timeout. + # response cannot be written within the write_timeout. Not raised on Windows. class WriteTimeout < Timeout::Error; end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/