-
Notifications
You must be signed in to change notification settings - Fork 541
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
abort might not work #650
Comments
Actually this might be working as design. An aborted requests that is not in the head of the pipeline will wait for the first head to finish before killing the socket. |
I agree |
I'm still seeing leaking connections in production. Not sure if user or undici error. Trying to bypass undici Pool and Agent and just use Client with a simpler Pool/Agent logic to see if that makes any difference. |
That made things a lot better. I suspect we have some form of edge case issue in undici. I will do an in depth review and see if I can add more tests. |
There is a possibility of a deadlock here if the first request is waiting for the aborted second request (pipelining > 1). It might be safer to just destroy the entire pipeline. @mcollina wdyt? |
Go for safety, but document this as a downside of pipelining. |
* fix: kill socket on abort Fixes: #650 * fixup * fixup * fixup * fixup * fixup * fixu * fixuP
* fix: kill socket on abort Fixes: nodejs#650 * fixup * fixup * fixup * fixup * fixup * fixu * fixuP
Reviewing abort and looking at some services in production I believe aborting requests might not fully work, i.e. the socket is not killed.
The text was updated successfully, but these errors were encountered: