mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
BUG/MINOR: applet: Commit changes into input buffer after sending HTX data
After sending HTX data to an applet, htx_to_buf() must be called on the applet buffer to commit changes (and possibly to reset the buffer if it is empty). This was performed on the output buffer while it should in fact be performed on the input buffer. So let's fix it. This patch must be backported as far as 3.0.
This commit is contained in:
parent
8497107132
commit
b8543c54d4
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ size_t appctx_htx_snd_buf(struct appctx *appctx, struct buffer *buf, size_t coun
|
|||
appctx_htx->flags |= (buf_htx->flags & HTX_FL_EOM);
|
||||
}
|
||||
|
||||
htx_to_buf(appctx_htx, &appctx->outbuf);
|
||||
htx_to_buf(appctx_htx, &appctx->inbuf);
|
||||
htx_to_buf(buf_htx, buf);
|
||||
ret -= buf_htx->data;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Reference in a new issue