mirror of
https://github.com/mjl-/mox.git
synced 2024-12-29 09:53:47 +03:00
14 lines
205 B
Go
14 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)
|
||
|
}
|