-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Conversation
Thank you for contributing this pull request! Here are a few pointers to make sure your submission will be considered for inclusion. The following commiters were not found in the CLA:
You can fix all these things without opening another issue. Please see CONTRIBUTING.md for more information |
Are you sure that there is no chance of the data coming out before |
This only changes the behavior of abort if there is not a socket. Since there is no socket, no data could have been sent unless I'm missing something. |
Two things.
Ping me when this is done. :) |
Avoid sending unsent data and destroying otherwise legitimate sockets for requests that are aborted while still in the agent queue. This reduces stress on upstream systems who will likely respond to the request but client app already knows that it will be dropped on the floor and also helps avoid killing keep-alive connections.
@trevnorris Done. Rebuilding after switching between 0.10 and master apparently takes a bit of time :) |
Thanks much. @tjfontaine This LGTM, but mind giving it a glance to make sure there was nothing I missed? |
Can we make this by default |
The |
@kpdecker yup |
Adds truthy flag that can be used for debugging as well. Per review by @tjfontaine.
@tjfontaine Updated |
Thanks, squashed and landed in d0c7d93 |
Avoid sending unsent data and destroying otherwise legitimate sockets
for requests that are aborted while still in the agent queue. This
reduces stress on upstream systems who will likely respond to the
request but client app already knows that it will be dropped on the
floor and also helps avoid killing keep-alive connections.