-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
EventEmitter memory leak on redirect #1390
Comments
👍 Have a look at #1329, that was a decent start but it appears to have been abandoned. Infinite redirects are always fun :( if you can post the URL/status transitions the request goes through in a separate issue then we can take a look. |
@nylen It literally just gets stuck in a |
Do we let it delete the cookie? I had another thought on #1132 which I'm posting there. |
@nylen I'll check that in the morning, but my hunch is that might be the issue too. I'd guess that the header isn't updated each redirect since the request never ends. |
Did this ever get resolved? I just hit the issue. Does the memory get reclaimed when the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Read here to figure out why this is happening #3139 (you should be fine) |
I was debugging serviejs/popsicle#10 and found out that there's actually an event listening bug that occurs on every redirect. It keeps attaching the same
pipe
andend
event listeners every redirect.I'll try to get a PR with tests ASAP, but didn't want this to get lost.
The referenced issue is somewhat related to #1132 since it hits an infinite redirect on
302
which made this fun to debug. FWIW,curl
did not get stuck in an infinite redirect (maybe another PR) and correctly closed.The text was updated successfully, but these errors were encountered: