From bc6174d4b5206f0aacbbaacd76011caebb4eb2a2 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sun, 11 Oct 2015 22:44:48 +0200 Subject: [PATCH] Continue to work even if failed to accept connection --- proxy/socks/socks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/socks.go b/proxy/socks/socks.go index 90b175254..29bd0a28c 100644 --- a/proxy/socks/socks.go +++ b/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) }