diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-10-12 08:21:02 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-10-12 08:21:02 +0800 |
commit | 7aa6b0629897235684961dfb9aa16e226efa27e6 (patch) | |
tree | 7eb408ef4de063fe997dd334fe1b75e52819e6ac /src/nxt_http_request.c | |
parent | 08dab702cb4140613e942b86f54824b3c7dea2ad (diff) | |
download | unit-7aa6b0629897235684961dfb9aa16e226efa27e6.tar.gz unit-7aa6b0629897235684961dfb9aa16e226efa27e6.tar.bz2 |
HTTP: added a $request_time variable.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_request.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 7a790f73..5c1455bf 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -278,6 +278,8 @@ nxt_http_request_create(nxt_task_t *task) r->resp.content_length_n = -1; r->state = &nxt_http_request_init_state; + r->start_time = nxt_thread_monotonic_time(task->thread); + task->thread->engine->requests_cnt++; return r; |