aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pacredir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pacredir.c b/pacredir.c
index 0241586..49d3265 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -386,6 +386,10 @@ static int ahc_echo(void * cls,
break;
}
+ /* throttle requests - do not send all request at the same time
+ * but wait for a short moment (10.000 us = 0.01 s) */
+ usleep(10000);
+
/* This is multi-threading code!
* Pointer to struct request does not work as realloc can relocate the data.
* We need a pointer to pointer to struct request, store the addresses in