Explorar el Código

Continue to work even if failed to accept connection

V2Ray hace 10 años
padre
commit
bc6174d4b5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 	}