mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
Closing a stream from a Docker GET read the rest of its body, since httpclient5 drains a response on close to keep its connection, so a caller that stopped after the first bytes of a large body still waited for all of it. On close the stream now reads at most 64 KiB of what is left: a body that ends there keeps its pooled connection, and a longer one is aborted. Closing it twice does nothing more. Refs #9244