From 8479f215e01ed9a00529e43506e2d942b268f679 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 22 Jul 2018 12:58:41 +1000 Subject: [PATCH] Don't return if there's an error accepting This happens if there's too many file descriptors, and left the client unresponsive. --- client.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client.go b/client.go index c4278582..ec388cea 100644 --- a/client.go +++ b/client.go @@ -389,10 +389,7 @@ func (cl *Client) acceptConnections(l net.Listener) { return } if err != nil { - log.Print(err) - // I think something harsher should happen here? Our accept - // routine just fucked off. - return + log.Printf("error accepting connection: %s", err) } go func() { if reject { -- 2.48.1