summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2008-06-29 16:38:43 +0200
committerWilly Tarreau <w@1wt.eu>2008-09-02 11:12:10 +0200
commit5d0cbc27fa59aaf77a690316fae57fbbec6f8eb0 (patch)
tree4db0832a338c8d9f918109a905d25c585b9d0cc5
parent9b4df962a40d6196c74f8621c2c7b9585284a874 (diff)
downloadhaproxy-5d0cbc27fa59aaf77a690316fae57fbbec6f8eb0.tar.gz
[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) (cherry picked from commit 80f35306e97e8ae762f81a178c8c225b5bbac91e)
-rw-r--r--src/proto_http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proto_http.c b/src/proto_http.c
index 27701e83a..81ac57bf9 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -4808,6 +4808,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;