浏览代码

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

Crash if we can't allocate incoming connection
tags/v1.0.2^2
Sergey Arkhipov 6 年前
父节点
当前提交
19efcc93fc
没有帐户链接到提交者的电子邮件
共有 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
 

正在加载...
取消
保存