containerd/runtime/v2/shim
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
..
publisher.go Remove gogoproto.stdtime 2022-04-19 13:39:30 +00:00
shim_darwin.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim_freebsd.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim_linux.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim_test.go Use t.Setenv instead of os.Setenv 2022-04-01 13:53:17 -07:00
shim_unix.go shimv2: handle sigint/sigterm 2022-01-25 17:57:28 +00:00
shim_windows.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
shim.go Swap to net.ErrClosed checks for services 2022-09-28 18:20:12 -07:00
util_test.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00
util_unix.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
util_windows.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
util.go runtime/v2: manager supports server interceptor 2022-07-22 23:25:40 +08:00