auth/vendor/github.com/valyala/fasthttp/tcp.go

14 lines
177 B
Go
Raw Normal View History

2022-06-09 17:35:23 +00:00
//go:build !windows
// +build !windows
package fasthttp
import (
"errors"
"syscall"
)
func isConnectionReset(err error) bool {
return errors.Is(err, syscall.ECONNRESET)
}