Преглед изворни кода

Crash if we can't allocate incoming connection

tags/v1.0.2^2
9seconds пре 6 година
родитељ
комит
b4c47ff4e1
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1
    2
      proxy/proxy.go

+ 1
- 2
proxy/proxy.go Прегледај датотеку

@@ -30,8 +30,7 @@ func (p *Proxy) Serve(listener net.Listener) {
30 30
 			case <-doneChan:
31 31
 				return
32 32
 			default:
33
-				p.Logger.Errorw("Cannot allocate incoming connection", "error", err)
34
-				continue
33
+				p.Logger.Fatalw("Cannot allocate incoming connection", "error", err)
35 34
 			}
36 35
 		}
37 36
 

Loading…
Откажи
Сачувај