sapling/eden/mononoke/lfs_server
Thomas Orozco 76606260c2 mononoke/lfs_server: automatically consume HTTP response bodies when dropped
Summary:
If we don't read the body for a response, then Hyper cannot return the
connection to the pool. So, let's do it automatically upon dropping. This will
typically happen when we send a request to upstream then don't read the
response.

I seem to remember this used to work fine at some point, but looking at the
code I think it's actually broken now and we don't reuse upstream connections
if we skip waiting for upstream in a batch request. So, let's fix it once and
for all with a more robust abstraction.

Reviewed By: HarveyHunt

Differential Revision: D22206742

fbshipit-source-id: 2da1c008556e1d964c1cc337d58f06f8d691a916
2020-06-24 10:02:02 -07:00
..
src mononoke/lfs_server: automatically consume HTTP response bodies when dropped 2020-06-24 10:02:02 -07:00
Cargo.toml mononoke/lfs_server: don't require reading data streams to drop them 2020-06-24 10:02:01 -07:00