Skip to content

Avoid unclosed SSLSocket warnings #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

chamini2
Copy link

When using posthog, even when manually calling posthog.shutdown(), we always get a warning at the end:

sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.110', 59478), raddr=('34.227.250.33', 443)>

The warning only happens if we did send some messages (try calling flush, which is called by shutdown anyways, to make it show up).

@chamini2
Copy link
Author

chamini2 commented Jul 4, 2022

Hello! Do you guys not get this behavior?

@pauldambra
Copy link
Member

sorry nobody replied here...

i'll close this since it's been nearly 3 years 🙈

@pauldambra pauldambra closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants