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