DockerCLI/cli/command
Josh Hawn 2831a04cba Enable TCP Keep-Alive in Docker client
Some network environments may have NATs, proxies, or gateways which
kill idle connections. There are many Docker API operations which may
be idle for long periods of time (such as ContainerWait and ContainerAttach)
and may result in unexpected connection closures or hangs if TCP keepalives
are not used.

This patch updates the default HTTP transport used by the Docker client
package to enable TCP Keep-Alive with a keep-alive interval of 30 seconds.
It also sets a connect timeout of 30 seconds.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2017-08-02 14:35:03 -07:00
..
bundlefile Import docker/docker/cli 2017-04-17 17:40:59 -04:00
checkpoint Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
commands Add support for configs 2017-05-11 13:42:49 -07:00
config Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
container Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
formatter Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
idresolver cli: gofmt + goimports 2017-05-08 10:51:30 -07:00
image Fast fail when save directory does not exist 2017-07-27 15:00:38 -07:00
inspect Unmarshal a number as a Number in RawInspectFallback 2017-06-21 13:10:14 +03:00
network adding connect disconnect network tests 2017-07-20 18:53:03 +02:00
node Sort swarm stacks and nodes using natural sorting 2017-07-13 14:33:02 +03:00
plugin Update cli imports to using local package 2017-05-15 14:45:19 +02:00
registry login: add a --password-stdin argument 2017-07-11 12:16:29 -06:00
secret Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
service Sort services names in a natural order 2017-07-19 18:18:06 +03:00
stack Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
swarm Fix warning in docker CLI when `swarm ca --ca-cert`, etc. flags are passed, 2017-07-12 14:56:28 -07:00
system Error if "until" filter is combined with "--volumes" on system prune 2017-07-21 12:11:53 +02:00
task Update FakeCli to remove duplication in tests. 2017-07-11 14:49:30 -04:00
volume Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
cli.go Enable TCP Keep-Alive in Docker client 2017-08-02 14:35:03 -07:00
events_utils.go Add deadcode linter. 2017-05-02 17:57:46 -04:00
in.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
out.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
registry.go Move credential getting functions to the ConfigFile. 2017-06-27 13:46:47 +02:00
registry_test.go Update some tests to remove unnecessary buffers. 2017-07-11 17:52:43 -04:00
stream.go Fix docker run -it on windows 2017-05-03 18:41:19 -07:00
trust.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
utils.go Add interfacer linter 2017-05-08 15:57:50 -04:00