소스 검색

Continue to work even if failed to accept connection

V2Ray 10 년 전
부모
커밋
bc6174d4b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      proxy/socks/socks.go

+ 1 - 1
proxy/socks/socks.go

@@ -49,7 +49,7 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) {
 		connection, err := listener.Accept()
 		if err != nil {
 			log.Error("Socks failed to accept new connection %v", err)
-			return
+			continue
 		}
 		go server.HandleConnection(connection)
 	}