FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: InfluxDBClient.close should also close udp socket by yabberyabber · Pull Request #906 · influxdata/influxdb-python · GitHub

This repository was archived by the owner on Oct 29, 2024. It is now read-only.
/ influxdb-python Public archive

chore: InfluxDBClient.close should also close udp socket - #906

Open
yabberyabber wants to merge 1 commit into
influxdata:masterfrom
yabberyabber:master
Open

chore: InfluxDBClient.close should also close udp socket#906
yabberyabber wants to merge 1 commit into
influxdata:masterfrom
yabberyabber:master

Conversation

Copy link
Copy Markdown

Currently, InfluxDBClient.close only works for http connections.
The function explicitly skips closing the udp_socket member. UDP
connections may not cost the system anything but leaving any
sort of socket open can cause certain dynamic analysis tools to
complain.

With this patch we explicitly close the socket which quiets our
linter's warnings.


Contributor checklist
  • Builds are passing
  • New tests have been added (for feature additions)

Currently, InfluxDBClient.close only works for http connections.
The function explicitly skips closing the udp_socket member. UDP
connections may not cost the system anything but leaving any
sort of socket open can cause certain dynamic analysis tools to
complain.

With this patch we explicitly close the socket which quiets our
linter's warnings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL