mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
write_timeout doc upates [skip ci]
From: MSP-Greg <MSP-Greg@users.noreply.github.com> fix https://github.com/ruby/ruby/pull/1885 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b5b7820ec2
commit
51cfea31e5
2 changed files with 3 additions and 2 deletions
|
@ -742,10 +742,11 @@ module Net #:nodoc:
|
|||
# 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
|
||||
|
|
|
@ -79,7 +79,7 @@ module Net # :nodoc:
|
|||
|
||||
##
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue