net_http_socket_close.patch
| lib/net/http.rb (working copy) | ||
|---|---|---|
| 1057 | 1057 |
res |
| 1058 | 1058 |
rescue => exception |
| 1059 | 1059 |
D "Conn close because of error #{exception}"
|
| 1060 |
@socket.close unless @socket.closed?
|
|
| 1060 |
@socket.close if @socket and not @socket.closed?
|
|
| 1061 | 1061 |
raise exception |
| 1062 | 1062 |
end |
| 1063 | 1063 | |