Revert "do no drain backlog on backpressure (#322)"

This reverts commit d4829b046d.
This commit is contained in:
Rob Ede 2021-04-09 20:51:49 +01:00 committed by GitHub
parent d4829b046d
commit 440d8fdc73
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ impl Accept {
}
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
while !self.backpressure {
loop {
let info = sockets
.get_mut(token)
.expect("ServerSocketInfo is removed from Slab");