Skip to content

Commit

Permalink
* lib/net/http.rb (Net::HTTP#initialize):
Browse files Browse the repository at this point in the history
  default value of Net::HTTP#open_timeout is now 60 (was nil).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Nov 7, 2015
1 parent f980646 commit 52e1c3b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Nov 8 01:31:27 2015 NARUSE, Yui <naruse@ruby-lang.org>

* lib/net/http.rb (Net::HTTP#initialize):
default value of Net::HTTP#open_timeout is now 60 (was nil).

Sat Nov 7 12:18:05 2015 Eric Wong <e@80x24.org>

* string.c (id_to_s): remove redundant variable
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ with all sufficient information, see the ChangeLog file.
* Coverage.peek_result: new method to allow coverage to be captured without
stopping the coverage tool.

* Net::HTTP
* default value of Net::HTTP#open_timeout is now 60 (was nil).

* Net::Telnet
* Net::Telnet is extracted to net-telnet gem. It's unmaintain code.

Expand Down
2 changes: 1 addition & 1 deletion lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def initialize(address, port = nil)
@close_on_empty_response = false
@socket = nil
@started = false
@open_timeout = nil
@open_timeout = 60
@read_timeout = 60
@continue_timeout = nil
@debug_output = nil
Expand Down

0 comments on commit 52e1c3b

Please sign in to comment.