mirror of
https://github.com/mjl-/mox.git
synced 2024-12-30 18:33:48 +03:00
13 lines
205 B
Go
13 lines
205 B
Go
//go:build !plan9
|
|
// +build !plan9
|
|
|
|
package sherpa
|
|
|
|
import (
|
|
"errors"
|
|
"syscall"
|
|
)
|
|
|
|
func isConnectionClosed(err error) bool {
|
|
return errors.Is(err, syscall.EPIPE) || errors.Is(err, syscall.ECONNRESET)
|
|
}
|