Skip to content

Conversation

@tcawlfield
Copy link

@tcawlfield tcawlfield commented Oct 5, 2016

A socketIO connection can hold two connections open: its transport and its requests.Session instance. These should be closed in __del__() and __exit__().

I found that on a Linux system, failure to close the underlying websocket.WebSocket and requests.Session instances causes a file descriptor leak.

A socketIO connection can hold two connections open: its transport and its
requests.Session instance. These should be closed in __del__ and __exit__.
@Joe-Palmer
Copy link

I just experienced the same problem. It is easy to run out of TCP sockets with heavy usage because they are not actually being closed. I can confirm this pull request fixes the problem so it would be well worth merging it @invisibleroads 😉

@Joe-Palmer Joe-Palmer mentioned this pull request Jan 5, 2017
@ranjanagwl
Copy link

I can also verify that this PR fixes #176. @invisibleroads can we expect this fix soon. So, far after many tests I have not encountered any issues caused by this fix and connections closes alright.

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.

4 participants