diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-10-22 16:04:16 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-10-22 16:04:16 +0300 |
commit | da0ef366dc1affa740618eb4f4baa8bbb62f8d70 (patch) | |
tree | 8eea7dedbfb8864d7281acb523a5f5dab68aec08 /src/nxt_http_request.c | |
parent | b20e995e80d236945ec8388dfee37257ce9e5445 (diff) | |
download | unit-da0ef366dc1affa740618eb4f4baa8bbb62f8d70.tar.gz unit-da0ef366dc1affa740618eb4f4baa8bbb62f8d70.tar.bz2 |
Handling of timers with bias.
Timers that don't require maximum precision (most of them, actually) can be
triggered earlier or later within the bias interval.
To reduce wakeups by timers, the expire function now triggers not only all
timers that fall within the elapsed time, but also those whose bias falls
within this interval.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 06d45247..b80998cb 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -192,7 +192,7 @@ nxt_http_app_request(nxt_task_t *task, void *obj, void *data) ar->timer.task = &engine->task; ar->timer.work_queue = &engine->fast_work_queue; ar->timer.log = engine->task.log; - ar->timer.precision = NXT_TIMER_DEFAULT_PRECISION; + ar->timer.bias = NXT_TIMER_DEFAULT_BIAS; ar->r.remote.start = nxt_sockaddr_address(r->remote); ar->r.remote.length = r->remote->address_length; |