DockerCLI/cli
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
..
command Enable TCP Keep-Alive in Docker client 2017-08-02 14:35:03 -07:00
compose Merge pull request #360 from akalipetis/compose-update-order 2017-08-01 22:24:48 +02:00
config Rename NewConfigFile to New in configfile package 2017-06-27 16:31:38 +02:00
debug Import docker/docker/cli 2017-04-17 17:40:59 -04:00
flags Update cli imports to using local package 2017-05-15 14:45:19 +02:00
internal/test Fix presentation of published "random" host ports 2017-08-01 19:21:17 +02:00
trust Add unconvert linter 2017-06-14 16:54:27 -07:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go fix docker/docker/cli path in comment 2017-04-24 11:31:08 -07:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
version.go Display proper version information 2017-05-09 14:22:51 -07:00