From 4a8779f808a099900a1da8675c87bff17cb134c9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 30 Sep 2020 15:12:13 +0200 Subject: [PATCH] MINOR: http-ana: Remove useless update of t_idle duration of the stream Becaues the stream is now created after the request headers parsing, the idle duration from the session is always up-to-date. --- src/http_ana.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/http_ana.c b/src/http_ana.c index 6659f7e..a884bba 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -108,10 +108,6 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit) /* we're speaking HTTP here, so let's speak HTTP to the client */ s->srv_error = http_return_srv_error; - /* If there is data available for analysis, log the end of the idle time. */ - if (c_data(req) && s->logs.t_idle == -1) - s->logs.t_idle = sess->t_idle; - /* * Now we quickly check if we have found a full valid request. * If not so, we check the FD and buffer states before leaving. -- 1.7.10.4