mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 04:43:37 -04:00
[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 284c7b3195)
This commit is contained in:
parent
b4ac1f9995
commit
80f35306e9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue