From: Matt Joiner Date: Sun, 22 Jul 2018 02:58:41 +0000 (+1000) Subject: Don't return if there's an error accepting X-Git-Tag: v1.0.0~69 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8479f215e01ed9a00529e43506e2d942b268f679;p=btrtrc.git Don't return if there's an error accepting This happens if there's too many file descriptors, and left the client unresponsive. --- 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 {