moby/cmd/dockerd
Brian Goff eaad3ee3cf Make sure timers are stopped after use.
`time.After` keeps a timer running until the specified duration is
completed. It also allocates a new timer on each call. This can wind up
leaving lots of uneccessary timers running in the background that are
not needed and consume resources.

Instead of `time.After`, use `time.NewTimer` so the timer can actually
be stopped.
In some of these cases it's not a big deal since the duraiton is really
short, but in others it is much worse.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2019-01-16 14:32:53 -08:00
..
hack Add canonical import comment 2018-02-05 16:51:57 -05:00
config.go add optional fields in daemon.json to enable buildkit 2018-08-19 14:58:23 -07:00
config_common_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
config_unix.go Various code-cleanup 2018-05-23 17:50:54 +02:00
config_unix_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
config_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
daemon.go Make sure timers are stopped after use. 2019-01-16 14:32:53 -08:00
daemon_freebsd.go Windows: Wait for OOBE to prevent crashing during host update 2017-02-15 14:01:54 -08:00
daemon_linux.go Use go-systemd const instead of magic string in Linux version of dockerd 2018-05-23 19:06:34 +02:00
daemon_test.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
daemon_unix.go create newBuildKit function separately in daemon_unix.go and daemon_windows.go for cross platform build 2018-09-11 11:22:48 -07:00
daemon_unix_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
daemon_windows.go create newBuildKit function separately in daemon_unix.go and daemon_windows.go for cross platform build 2018-09-11 11:22:48 -07:00
docker.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
docker_unix.go Split daemon service code to _windows file 2018-03-21 12:57:53 +01:00
docker_windows.go Split daemon service code to _windows file 2018-03-21 12:57:53 +01:00
metrics.go Various code-cleanup 2018-05-23 17:50:54 +02:00
options.go Configure log-format earlier, and small refactor 2018-12-19 18:53:18 +01:00
options_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
README.md Fix readme doc for dockerd 2016-09-01 14:47:51 +08:00
service_unsupported.go Split daemon service code to _windows file 2018-03-21 12:57:53 +01:00
service_windows.go Properly type handles to prevent overflows 2018-10-10 16:46:37 -07:00

docker.go contains Docker daemon's main function.

This file provides first line CLI argument parsing and environment variable setting.