do no drain backlog on backpressure

This commit is contained in:
fakeshadow 2021-04-08 14:09:28 +08:00
parent 5961eb892e
commit f5996a458b
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) {
loop {
while !self.backpressure {
let info = sockets
.get_mut(token)
.expect("ServerSocketInfo is removed from Slab");