abbb3a3dd35e42dd509989e7d92eafa367c6c3a1
In the go stdlib net/http Transport, the used connections are cached when idled. This behaviour is intended for TCP connections and does not behave correctly for unix sockets. Despite the DefaultMaxIdleConnsPerHost being 2, the idled connections are held open during a session. For large sessions like `docker rm $(docker ps -a -q)` of thousands of containers, it will cause the client _and_ the server to open too many fails and have failures. Having keep alives not used for only unix sockets is a work around for this stdlib issue. Also this includes disabling compression when communicating over the local unix socket too. Signed-off-by: Vincent Batts <vbatts@redhat.com> Upstream-commit: fb7ceeb170447cdbef3e74a92358eb9b084c0bf7 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%