-
Notifications
You must be signed in to change notification settings - Fork 62
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
Investigate Bitbox Socket Issue #173
Comments
I've added steps to reproduce in branch Running
This shows that a developer wanting to Running There are different ways to approach fixing this, with different amounts of overhaul to A minimal change would just track connections, re-using them where possible and throwing errors where not. But it might also make sense to refactor a bit like moving connection establishment to the constructor, which is what the documentation implies happens. This would allow the If you could reply with "minimal change" or "refactoring ok" to indicate your preference I will submit a suitable PR for your consideration. |
Just to add that the test as committed only calls Also on further investigation moving the connection establishment to constructor is not possible for the BitSocket case (as it depends on knowing the query) and not a good idea for the socket.io case (TIL "constructors should be pure") so I'd like cancel that suggestion. I'm tending towards the "minimal change" option. Cc @SpendBCH. |
Just discovered there is a separate issue in EventSource dependency also causing zombie connections. Please note the PR submitted here does not address that issue. |
From a user report in our Telegram channel:
The scope of this issue is to investigate this claim. The deliverable is code that reproduce this issue of creating multiple TCP connections.
I've seen behavior on the back end that suggest that some apps are creating redundant connection which slows down both the server and end-user app.
The text was updated successfully, but these errors were encountered: