浏览代码

continue to work even if failed to accept connection

V2Ray 10 年之前
父节点
当前提交
9e078d533d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      proxy/vmess/vmessin.go

+ 2 - 1
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)
 	}