Fix typo and left-over call to stop a timer
parent
383fa6a4f5
commit
859451afad
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue