From: Willy Tarreau Date: Sun, 29 Jun 2008 14:38:43 +0000 (+0200) Subject: [BUG] disable buffer read timeout when reading stats X-Git-Tag: v1.3.15.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80f35306e97e8ae762f81a178c8c225b5bbac91e;p=thirdparty%2Fhaproxy.git [BUG] disable buffer read timeout when reading stats The buffer read timeouts were not reset when stats were produced. This caused unneeded wakeups. (cherry picked from commit 284c7b319566a66d5b742c905072175aac6445e1) --- diff --git a/src/proto_http.c b/src/proto_http.c index 0311748cd6..e36f4b0b29 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -5062,6 +5062,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;