1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/http.rb (transport_request): @socket may be nil.

patched by Egbert Eich [ruby-core:32829]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-10-18 01:20:37 +00:00
parent c0e6dab0b7
commit b1361d5be1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Oct 18 10:19:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
* lib/net/http.rb (transport_request): @socket may be nil.
patched by Egbert Eich [ruby-core:32829]
Mon Oct 18 09:57:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
* sprintf.c (BSD_vfprintf): wrong padding arround prefix and

View file

@ -1201,7 +1201,7 @@ module Net #:nodoc:
res
rescue => exception
D "Conn close because of error #{exception}"
@socket.close unless @socket.closed?
@socket.close if @socket and not @socket.closed?
raise exception
end