2
0
Fork 0

Fix typo and left-over call to stop a timer

This commit is contained in:
Thomas Porzelt 2009-04-16 17:17:48 +02:00
parent 383fa6a4f5
commit 859451afad
2 changed files with 1 additions and 2 deletions

View File

@ -1145,7 +1145,7 @@ static handler_t core_handle_throttle_connection(vrequest *vr, gpointer param, g
con->throttled = TRUE;
if (con->throttle.pool.magazine) {
suply = MAX(con->throttle.pool.magazine, rate * THROTTLE_GRANULARITY);
supply = MAX(con->throttle.pool.magazine, rate * THROTTLE_GRANULARITY);
con->throttle.con.magazine += supply;
con->throttle.pool.magazine -= supply;
}

View File

@ -454,7 +454,6 @@ void worker_stop(worker *context, worker *wrk) {
ev_async_stop(wrk->loop, &wrk->new_con_watcher);
waitqueue_stop(&wrk->io_timeout_queue);
waitqueue_stop(&wrk->throttle_queue);
ev_timer_stop(wrk->loop, &wrk->throttle_timer);
worker_new_con_cb(wrk->loop, &wrk->new_con_watcher, 0); /* handle remaining new connections */
/* close keep alive connections */