From 80c0ddb346dc488be6c89daefdfb419e97dab5c2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 11:38:54 +1100 Subject: [PATCH] Revert "Rate limit proxy recruiting to one thread at a time" This reverts commit d8eaa0b4e9a22c11976c100a60211e41b7a707a0. --- src/generator.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/generator.c b/src/generator.c index 475339dc..d76f31f3 100644 --- a/src/generator.c +++ b/src/generator.c @@ -107,7 +107,6 @@ struct proxy_instance { bool disabled; /* Subproxy no longer to be used */ bool reconnect; /* We need to drop and reconnect */ bool reconnecting; /* Testing in progress */ - bool recruiting; /* Recruiting in progress */ bool alive; mutex_t notify_lock; @@ -1699,7 +1698,6 @@ static void *proxy_recruit(void *arg) store_proxy(gdata, proxy); } else add_subproxy(parent, proxy); - parent->recruiting = false; return NULL; } @@ -1707,9 +1705,6 @@ static void recruit_subproxy(proxy_instance_t *proxi) { pthread_t pth; - if (proxi->recruiting) - return; - proxi->recruiting = true; create_pthread(&pth, proxy_recruit, proxi); }