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:
Christopher Faulet 2026-06-01 15:16:35 +02:00
parent 8497107132
commit b8543c54d4

View file

@ -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: