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

11 lines
140 B
Go
Raw Normal View History

package fasthttp
import (
"errors"
"syscall"
)
func isConnectionReset(err error) bool {
return errors.Is(err, syscall.WSAECONNRESET)
}