diff --git a/server.go b/server.go index efcedd4..dca0fac 100644 --- a/server.go +++ b/server.go @@ -8,6 +8,7 @@ import ( "log" "net" "os" + "strings" "sync" "sync/atomic" "time" @@ -320,7 +321,7 @@ func acceptConn(s *Server, ln net.Listener, lastPerIPErrorTime *time.Time) (net. time.Sleep(time.Second) continue } - if err != io.EOF { + if err != io.EOF && !strings.Contains(err.Error(), "use of closed network connection") { s.logger().Printf("Permanent error when accepting new connections: %s", err) } return nil, err