Skip to content

Commit a1d45ac

Browse files
mdesmethashhar
authored andcommitted
Close http session on connection.close()
1 parent 0308865 commit a1d45ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

trino/dbapi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ def __exit__(self, exc_type, exc_value, traceback):
170170
self.close()
171171

172172
def close(self):
173-
"""Trino does not have anything to close"""
174173
# TODO cancel outstanding queries?
175-
pass
174+
self._http_session.close()
176175

177176
def start_transaction(self):
178177
self._transaction = Transaction(self._create_request())

0 commit comments

Comments
 (0)