瀏覽代碼

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)
 	}