moby--moby/api/client
Vincent Batts da42ae536c client: even cleaner use of Transport
First off, sorry for the noise. This is a cleaner step of #8508

Found more of a root cause of the open file handles.
After more testing I found that the open file descriptors will still
occur for TCP:// connections to the daemon, causing client and/or daemon
to fail.

The issue was instantiating a new http.Transport on _ever_ client
request. So each instance held the prior connection alive, but was only
ever used once.

By moving it out to the initilization of DockerCli, we can now have
reuse of idled connections. Simplifies the garbage overhead of the
client too, though that's not usually a deal.

Signed-off-by: Vincent Batts <vbatts@redhat.com>
2014-10-12 22:32:55 -04:00
..
cli.go client: even cleaner use of Transport 2014-10-12 22:32:55 -04:00
commands.go Import ps name parsing for default name 2014-10-10 22:18:25 +00:00
hijack.go Move Go() promise-like func from utils to pkg/promise 2014-09-29 23:16:27 -07:00
utils.go client: even cleaner use of Transport 2014-10-12 22:32:55 -04:00