mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 20:01:48 +01:00
Revert "do no drain backlog on backpressure" (#324)
This reverts commit d4829b046defc6466045aeeff3c18f5b495b579a.
This commit is contained in:
parent
d4829b046d
commit
859f45868d
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user