Backport #2708 ยป net_http_socket_close.patch
lib/net/http.rb (working copy) | ||
---|---|---|
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
|
||