]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] disable buffer read timeout when reading stats
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Jun 2008 14:38:43 +0000 (16:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Jun 2008 14:38:43 +0000 (16:38 +0200)
The buffer read timeouts were not reset when stats were produced. This
caused unneeded wakeups.

src/proto_http.c

index a5319e02fdc0fdd65a312d34ffee75a1fa4fe716..7b35ff7cc627f9b95bb2b6fa0477125f8d4789df 100644 (file)
@@ -5152,6 +5152,9 @@ int stats_check_uri_auth(struct session *t, struct proxy *backend)
        /* The request is valid, the user is authenticated. Let's start sending
         * data.
         */
+       EV_FD_CLR(t->cli_fd, DIR_RD);
+       buffer_shutr(t->req);
+       buffer_shutr(t->rep);
        t->cli_state = CL_STSHUTR;
        t->req->rlim = t->req->data + BUFSIZE; /* no more rewrite needed */
        t->logs.tv_request = now;