1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libcontainerd
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
..
supervisor Make sure timers are stopped after use. 2019-01-16 14:32:53 -08:00
client_daemon.go libcontainerd: prevent exec delete locking 2018-12-17 12:22:37 +02:00
client_daemon_linux.go Add ADD/COPY --chown flag support to Windows 2018-08-13 21:59:11 -07:00
client_daemon_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
client_local_windows.go Add --device support for Windows 2018-11-21 15:31:17 -08:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
process_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
queue.go Add canonical import comment 2018-02-05 16:51:57 -05:00
queue_test.go Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
types.go libcontainerd: split client and supervisor 2018-08-06 10:23:04 -07:00
types_linux.go Various code-cleanup 2018-05-23 17:50:54 +02:00
types_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
utils_windows.go libcontainerd: split client and supervisor 2018-08-06 10:23:04 -07:00
utils_windows_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00