Endpoint::accept can yield None after Endpoint::close is called and any previously pending Incoming connections are drained, so it's likely that the application's accept loop will terminate and not see any further Incomings. This could lead to painful slow timeouts, so let's eagerly reject them instead.
Endpoint::accept
can yieldNone
afterEndpoint::close
is called and any previously pendingIncoming
connections are drained, so it's likely that the application's accept loop will terminate and not see any furtherIncoming
s. This could lead to painful slow timeouts, so let's eagerly reject them instead.