8000 Merge branch 'master' into master · influxdata/influxdb-python@ecd2a80 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit ecd2a80

Browse files
authored
Merge branch 'master' into master
2 parents bf78387 + 87683f4 commit ecd2a80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

influxdb/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,11 @@ def send_packet(self, packet, protocol='json'):
823823
data = ('\n'.join(packet) + '\n').encode('utf-8')
824824
self.udp_socket.sendto(data, (self._host, self.udp_port))
825825

826+
def close(self):
827+
"""Close http session."""
828+
if isinstance(self._session, requests.Session):
829+
self._session.close()
830+
826831

827832
def _parse_dsn(dsn):
828833
"""Parse data source name.

0 commit comments

Comments
 (0)
0