containerd/cmd
Daniel Canter 4333e6a6d6 Swap to net.ErrClosed checks for services
In Go 1.16 `net.ErrClosed` was exported, removing the need to check the
exact text of "use of closed network connection". The stdlib's net listeners
are all setup for this to be a reality, but on Windows containerd uses the
the go-winio projects named pipe implementation as the listener for services.
Before version 0.6.0 this project returned a different error named
`ErrPipeListenerClosed` for using a closed pipe, where this error was just
an `errors.New` with the same text as `net.ErrClosed`, so checking against
`net.ErrClosed` wasn't possible.

Starting in 0.6.0 go-winio has that error assigned to `net.ErrClosed` directly
so this *should* be alright to finally change.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-09-28 18:20:12 -07:00
..
containerd delete redundent import alias and and type conversion 2022-08-31 21:36:24 +08:00
containerd-shim Swap to net.ErrClosed checks for services 2022-09-28 18:20:12 -07:00
containerd-shim-runc-v1 Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
containerd-shim-runc-v2 Restore sandboxes on daemon restart 2022-04-08 13:33:48 -07:00
containerd-stress containerd-stress: add support for running through CRI 2022-06-11 09:59:07 +02:00
ctr Merge pull request #7328 from liubin/add-privileged-without-host-devices 2022-09-09 20:58:16 -07:00
gen-manpages refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
protoc-gen-go-fieldpath Don't generate a Go file, if that would be empty 2022-04-19 22:15:45 +00:00