]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http-ana: Remove useless update of t_idle duration of the stream
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2020 13:12:13 +0000 (15:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
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

index 6659f7e7b36efbb881cb771bf5b1c421056eb37c..a884bbabda54296c86d43ec3af5c82113ddfc0c4 100644 (file)
@@ -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.