зеркало из https://github.com/github/ruby.git
* 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:
Родитель
c0e6dab0b7
Коммит
b1361d5be1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче