mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 22:51:07 +01:00
do no drain backlog on backpressure (#322)
This commit is contained in:
parent
5961eb892e
commit
d4829b046d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user