Commit f9aa6281 authored by arianna-aondio's avatar arianna-aondio

We measure the timeout_req starting from sp->t_first(record first byte

received timestamp) instead of sp->t_idle.
parent a281a106
......@@ -121,7 +121,7 @@ http1_wait(struct sess *sp, struct worker *wrk, struct req *req)
if (isnan(req->t_first))
/* Record first byte received time stamp */
req->t_first = now;
when = sp->t_idle + cache_param->timeout_req;
when = req->t_first + cache_param->timeout_req;
tmo = (int)(1e3 * (when - now));
if (when < now || tmo == 0) {
why = SC_RX_TIMEOUT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment