mirror of https://github.com/v2ray/v2ray-core
Continue to work even if failed to accept connection
parent
0a1f5fe27e
commit
bc6174d4b5
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue