mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: stats/htx: Call channel_add_input() when response headers are sent
This function will only increment the total amount of bytes read by a channel because at this stage there is no fast forwarding. So the bug is pretty limited. This patch must be backported to 1.9.
This commit is contained in:
parent
269223886d
commit
1e2d636413
1 changed files with 2 additions and 0 deletions
|
|
@ -3136,6 +3136,7 @@ static int stats_send_htx_headers(struct stream_interface *si, struct htx *htx)
|
|||
if (!htx_add_endof(htx, HTX_BLK_EOH))
|
||||
goto full;
|
||||
|
||||
channel_add_input(&s->res, htx->data);
|
||||
return 1;
|
||||
|
||||
full:
|
||||
|
|
@ -3195,6 +3196,7 @@ static int stats_send_htx_redirect(struct stream_interface *si, struct htx *htx)
|
|||
if (!htx_add_endof(htx, HTX_BLK_EOH))
|
||||
goto full;
|
||||
|
||||
channel_add_input(&s->res, htx->data);
|
||||
return 1;
|
||||
|
||||
full:
|
||||
|
|
|
|||
Loading…
Reference in a new issue