containerd/runtime
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
..
linux/runctypes Regenerate protos with updated protoc-gen-go 2022-07-28 16:59:30 +00:00
opts Update cgroups to v1.0.2 2021-10-08 17:48:33 -07:00
restart Make getServicesOpts a helper 2022-07-22 19:38:45 -07:00
v1 Make TaskList generic 2022-08-10 14:02:53 -07:00
v2 Swap to net.ErrClosed checks for services 2022-09-28 18:20:12 -07:00
events.go Licence header added 2018-02-19 10:32:26 +09:00
monitor.go Add runtime label to metrics 2021-07-23 10:04:46 -07:00
nsmap.go Make TaskList generic 2022-08-10 14:02:53 -07:00
runtime.go Launch sandboxed containers from task service 2022-04-08 13:33:47 -07:00
task.go Consolidate gogo/protobuf dependencies under our own protobuf package 2022-04-19 15:53:36 +00:00
typeurl.go Licence header added 2018-02-19 10:32:26 +09:00