Skip to content

Commit 2b59caf

Browse files
authored
Fix connection leak (#133)
1 parent 83cd214 commit 2b59caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v3io/dataplane/transport/httpclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def send_request(self, request):
7575
try:
7676
return self._send_request_on_connection(request, connection)
7777
except BaseException as e:
78-
connection.close()
78+
request.transport.connection_used.close()
7979
connection = self._create_connection(self._host, self._ssl_context)
8080
self._free_connections.put(connection, block=True)
8181
raise e

0 commit comments

Comments
 (0)