ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:72413] Doc fix: Net::HTTP default open_timeout is 60 seconds
@ 2015-12-20 13:20 Ilya Vassilevsky
  2015-12-21  1:25 ` [ruby-core:72417] " Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Ilya Vassilevsky @ 2015-12-20 13:20 UTC (permalink / raw)
  To: ruby-core

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

Hello :)

This is an addition to the changes in revision 52480.
The default open_timeout was set to 60 seconds
but the documentation still says it is nil.

I hope this is useful :)



[-- Attachment #2: ruby-changes.patch --]
[-- Type: application/octet-stream, Size: 642 bytes --]

Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 53220)
+++ lib/net/http.rb	(working copy)
@@ -702,7 +702,7 @@
     # Number of seconds to wait for the connection to open. Any number
     # may be used, including Floats for fractional seconds. If the HTTP
     # object cannot open a connection in this many seconds, it raises a
-    # Net::OpenTimeout exception. The default value is +nil+.
+    # Net::OpenTimeout exception. The default value is 60 seconds.
     attr_accessor :open_timeout
 
     # Number of seconds to wait for one block to be read (via one read(2)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:72417] Re: Doc fix: Net::HTTP default open_timeout is 60 seconds
  2015-12-20 13:20 [ruby-core:72413] Doc fix: Net::HTTP default open_timeout is 60 seconds Ilya Vassilevsky
@ 2015-12-21  1:25 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2015-12-21  1:25 UTC (permalink / raw)
  To: ruby-core

Thanks, committed as r53226

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-21  0:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-20 13:20 [ruby-core:72413] Doc fix: Net::HTTP default open_timeout is 60 seconds Ilya Vassilevsky
2015-12-21  1:25 ` [ruby-core:72417] " Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).