]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: filter: Disable auto-close on channel during TCP payload filtering
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2026 14:20:44 +0000 (16:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2026 18:41:16 +0000 (20:41 +0200)
commite96a8b3d0f546f4348e213b43c4f7a86f1693356
tree9c40741d567f9e3abf636a8ec4d5eea0936aa8bb
parent98a0050cc213c26a564c5284b7c9bb460530b47a
BUG/MEDIUM: filter: Disable auto-close on channel during TCP payload filtering

While a filter is registered on the payload filter in TCP, it is important
to disable the auto-cloes on the corresponding channel. It is already
performed in HTTP. It is only an issue when the ->tcp_payload callback
function is defined.

Without this patch, the data blocked in a filter may be lost when the
producer shut its connection. In that case, we must take care to wait the
filter flushes pending data.

This patch should fix the issue #3457. It must be backported to all
supported versions.
src/filters.c