From 772e66b91c0c371f5777d50703b3629caa770e6e Mon Sep 17 00:00:00 2001 From: Thomas Porzelt Date: Mon, 1 Nov 2010 20:09:41 +0100 Subject: [PATCH] [core] Immediately rearm throttle pool and update con when inserting into pool --- src/main/throttle.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/throttle.c b/src/main/throttle.c index 0f2a9fc..f8a099a 100644 --- a/src/main/throttle.c +++ b/src/main/throttle.c @@ -6,6 +6,8 @@ #include +static void li_throttle_pool_rearm(liWorker *wrk, liThrottlePool *pool); + liThrottlePool *li_throttle_pool_new(liServer *srv, liThrottlePoolType type, gpointer param, guint rate) { liThrottlePool *pool; guint i; @@ -145,6 +147,9 @@ void li_throttle_pool_acquire(liVRequest *vr, liThrottlePool *pool) { } vr->throttled = TRUE; + + li_throttle_pool_rearm(vr->wrk, pool); + li_throttle_update(vr, 0, 0); } void li_throttle_pool_release(liVRequest *vr, liThrottlePool *pool) {