Skip to content

Commit

Permalink
Don't return if there's an error accepting
Browse files Browse the repository at this point in the history
This happens if there's too many file descriptors, and left the client unresponsive.
  • Loading branch information
anacrolix committed Jul 22, 2018
1 parent d575877 commit 8479f21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8479f21

Please sign in to comment.