From b4c47ff4e127a3f0acbd8e06330a5b218aefe5d9 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Wed, 4 Dec 2019 10:22:35 +0300 Subject: [PATCH] Crash if we can't allocate incoming connection --- proxy/proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index a1f0d43..7b539c4 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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) } }