Skip to content

Commit 859f458

Browse files
authored
Revert "do no drain backlog on backpressure" (#324)
This reverts commit d4829b0.
1 parent d4829b0 commit 859f458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actix-server/src/accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl Accept {
407407
}
408408

409409
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
410-
while !self.backpressure {
410+
loop {
411411
let info = sockets
412412
.get_mut(token)
413413
.expect("ServerSocketInfo is removed from Slab");

0 commit comments

Comments
 (0)