Crash if we can't allocate incoming connection

This commit is contained in:
9seconds
2019-12-04 10:22:35 +03:00
parent 8a783d6b4e
commit b4c47ff4e1
+1 -2
View File
@@ -30,8 +30,7 @@ func (p *Proxy) Serve(listener net.Listener) {
case <-doneChan:
return
default:
p.Logger.Errorw("Cannot allocate incoming connection", "error", err)
continue
p.Logger.Fatalw("Cannot allocate incoming connection", "error", err)
}
}