ignore reset by peer error
This commit is contained in:
parent
22be725b45
commit
d2da9ca6ee
@ -117,11 +117,11 @@ func handleConn(
|
|||||||
ok := func() bool {
|
ok := func() bool {
|
||||||
msgs, err := rd.ReadMessages()
|
msgs, err := rd.ReadMessages()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == io.EOF {
|
errstr := err.Error()
|
||||||
return false
|
|
||||||
}
|
|
||||||
if err == errCloseHTTP ||
|
if err == errCloseHTTP ||
|
||||||
strings.Contains(err.Error(), "use of closed network connection") {
|
err == io.EOF ||
|
||||||
|
strings.Contains(errstr, "use of closed network connection") ||
|
||||||
|
strings.Contains(errstr, "connection reset by peer") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user