moby/libcontainerd
Brian Goff 1acaf2aabe Sleep before restarting event processing
This prevents restarting event processing in a tight loop.
You can see this with the following steps:

```terminal
$ containerd &
$ dockerd --containerd=/run/containerd/containerd.sock &
$ pkill -9 containerd
```

At this point you will be spammed with logs such as:

```
ERRO[2019-07-12T22:29:37.318761400Z] failed to get event                           error="rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = \"transport: Error while dialing dial unix /run/containerd/containerd.sock: connect: connection refused\"" module=libcontainerd namespace=plugins.moby
```

Without this change you can quickly end up with gigabytes of log data.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2019-07-12 15:42:19 -07:00
..
local Windows: fix error-type for starting a running container 2019-05-22 13:27:55 +02:00
queue Windows: Experimental: Allow containerd for runtime 2019-03-12 18:41:55 -07:00
remote Sleep before restarting event processing 2019-07-12 15:42:19 -07:00
supervisor Merge pull request #38522 from cpuguy83/fix_timers 2019-06-07 13:16:46 +02:00
types Remove inmemory container map 2019-04-05 15:48:07 -04:00
libcontainerd_linux.go Windows: Experimental: Allow containerd for runtime 2019-03-12 18:41:55 -07:00
libcontainerd_windows.go Windows: Experimental: Allow containerd for runtime 2019-03-12 18:41:55 -07:00