1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 01:11:07 +01:00

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

This reverts commit d4829b046d.
This commit is contained in:
Rob Ede 2021-04-09 21:04:41 +01:00 committed by GitHub
parent d4829b046d
commit 859f45868d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");