-
Notifications
You must be signed in to change notification settings - Fork 252
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
Fix multi connects #59
Conversation
Testing ongoing. Please wait for feedback on whether this solves our issue |
So this isn't going to work due to the fact that if the connection doesn't happen on first attempt it simply does not work. We're removing the req.on('error', onConnectionClosed); as well. I'm going to selectively remove end and close. |
The tests control both the server and the client, so whatever situation you've run into it should be reproducible with a test. I'm afraid I won't accept pull requests without tests. |
Yeah I get it. See what I can do |
@philstrong I think a test that has the server return a redirect (307) will prove this out. |
I'll close this PR soon unless someone adds tests for it |
I'm running into the same issue. Basically, when the server drops the socket, both "close" and "event" fire. Since Subsequently, when both connections are closed, that gets doubled again (4 connects) and so forth 2^x |
Please look at my PR #61 for a test that exposes the bug |
closed in favor of #61 |
No description provided.