mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fb7ceeb170
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> |
||
---|---|---|
.. | ||
client | ||
server | ||
api_unit_test.go | ||
common.go | ||
MAINTAINERS | ||
README.md |
This directory contains code pertaining to the Docker API:
-
Used by the docker client when communicating with the docker daemon
-
Used by third party tools wishing to interface with the docker daemon