well-goknown/vendor/github.com/valyala/fasthttp/tcp.go

13 lines
158 B
Go
Raw Normal View History

//go:build !windows
package fasthttp
import (
"errors"
"syscall"
)
func isConnectionReset(err error) bool {
return errors.Is(err, syscall.ECONNRESET)
}