1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

add basic client connection pooling

This commit is contained in:
Nikolay Kim
2018-03-16 12:04:01 -07:00
parent b15b5e5246
commit 84bf282c17
5 changed files with 232 additions and 35 deletions

View File

@@ -745,6 +745,8 @@ fn start_accept_thread(
msg = err.into_inner();
workers.swap_remove(next);
if workers.is_empty() {
error!("No workers");
thread::sleep(sleep);
break
} else if workers.len() <= next {
next = 0;