From: Christopher Faulet Date: Wed, 30 Sep 2020 13:12:13 +0000 (+0200) Subject: MINOR: http-ana: Remove useless update of t_idle duration of the stream X-Git-Tag: v2.4-dev3~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a8779f808a099900a1da8675c87bff17cb134c9;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/http_ana.c b/src/http_ana.c index 6659f7e7b3..a884bbabda 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.