aboutsummaryrefslogtreecommitdiff
path: root/tcp.go
blob: 7e804374f0730da0e70794a568158585096db8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//go:build !windows

package fasthttp

import (
	"errors"
	"syscall"
)

func isConnectionReset(err error) bool {
	return errors.Is(err, syscall.ECONNRESET)
}