Merge pull request #123 from 9seconds/panic-on-err

Crash if we can't allocate incoming connection
This commit is contained in:
Sergey Arkhipov
2019-12-04 10:37:20 +03:00
committed by GitHub
+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)
}
}