tcp.go 158 B

123456789101112
  1. //go:build !windows
  2. package fasthttp
  3. import (
  4. "errors"
  5. "syscall"
  6. )
  7. func isConnectionReset(err error) bool {
  8. return errors.Is(err, syscall.ECONNRESET)
  9. }