mirror of
https://github.com/hanzoai/mail.git
synced 2026-09-23 23:53:02 +00: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)
|
|
}
|