소스 검색

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
No account linked to committer's email address
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…
취소
저장