Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ruby/1.9/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def request(req, body = nil, &block) # :yield: +response+
res
rescue => exception
D "Conn close because of error #{exception}"
@socket.close unless @socket.closed?
@socket.close unless @socket.nil? || @socket.closed?
raise exception
end

Expand Down