mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 01:02:12 +08:00
minor bug fix, docker
This commit is contained in:
1 parent
32e3d411ad
commit
78ebeba1bb
6 files changed
+42
-9
No files matched your search
@@ -43,9 +43,16 @@ func Accept(l net.Listener, f func(c net.Conn)) {
|
||||
if strings.Contains(err.Error(), "use of closed network connection") {
|
||||
break
|
||||
}
|
||||
if strings.Contains(err.Error(), "the mux has closed") {
|
||||
break
|
||||
}
|
||||
logs.Warn(err)
|
||||
continue
|
||||
}
|
||||
if c == nil {
|
||||
logs.Warn("nil connection")
|
||||
break
|
||||
}
|
||||
go f(c)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user