Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix concurrent accepts #2403
@piscisaureus When a TCPListener is closed, if there are pending accept futures for that server, they will not be woken up. (This seems like a bug in Tokio, actually.) The solution is to associate the Accept future (actually the current task) with the TCPListener and manually poll it (using Task::notify), when that happens the accept future errors out.