]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Properly forward kip to the opposite SE descriptor
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Oct 2025 09:01:19 +0000 (11:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Oct 2025 09:01:21 +0000 (11:01 +0200)
commit4145a611019b3137618b8a533831419bfdcf1800
treee4d18d3963879b8c6d1008343a153fa19896763c
parent54f0ab08b8f1a3cb1970586e4b7ac48cf7bdf520
BUG/MEDIUM: stconn: Properly forward kip to the opposite SE descriptor

By refactoring the HTX to remove the extra field, a bug was introduced in
the stream-connector part. The <kip> (known input payload) value of a sedesc
was moved to <kop> (knwon output payload) using the same sedesc. Of course,
this is totally wrong. <kip> value of a sedesc must be forwarded to the
opposite side.

In addition, the operation is performed in sc_conn_send(). In this function,
we manipulate the stream-connectors. So se_fwd_kip() function was changed to
use the stream-connectors directely.

Now, the function sc_ep_fwd_kip() is now called with the both
stream-connectors to properly forward <kip> from on side to the opposite
side.

The bug is 3.3-specific. No backport needed.
include/haproxy/stconn.h
src/stconn.c