Przeglądaj źródła

Continue to work even if failed to accept connection

V2Ray 10 lat temu
rodzic
commit
bc6174d4b5
1 zmienionych plików z 1 dodań i 1 usunięć
  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)
 	}