From 9e078d533d284a42bd564428b008734ae22901c3 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Sun, 11 Oct 2015 22:46:56 +0200 Subject: [PATCH] continue to work even if failed to accept connection --- proxy/vmess/vmessin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/vmess/vmessin.go b/proxy/vmess/vmessin.go index bb75960ac..899bf990c 100644 --- a/proxy/vmess/vmessin.go +++ b/proxy/vmess/vmessin.go @@ -53,7 +53,8 @@ func (handler *VMessInboundHandler) AcceptConnections(listener *net.TCPListener) for handler.accepting { connection, err := listener.AcceptTCP() if err != nil { - return log.Error("Failed to accpet connection: %s", err.Error()) + log.Error("Failed to accpet connection: %s", err.Error()) + continue } go handler.HandleConnection(connection) }