github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/network/p2p/netutil/error.go (about) 1 package netutil 2 3 func IsTemporaryError(err error) bool { 4 tempErr, ok := err.(interface { 5 Temporary() bool 6 }) 7 return ok && tempErr.Temporary() || isPacketTooBig(err) 8 }