]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hq_interop: do not rely on stream layer for HTX stline encoding master quic-interop flx04/master
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Jun 2026 09:22:19 +0000 (11:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 18 Jun 2026 12:53:21 +0000 (14:53 +0200)
commitc2638c826c969a8ec346d03b9e1ccd1ba6d7b1a2
tree9a8c6d5eedfa0de022353772a52090b9c80c5f1e
parent0a98fdb038d84b9626c6dfe4355874a52d1b7a8c
MINOR: hq_interop: do not rely on stream layer for HTX stline encoding

HTTP/0.9 is a simple protocol. The response only contains the body
without any status line nor header. An HTX start line must be built when
transcoding the message for haproxy stream layer on the first invocation
of rcv_buf() callback.

Previously, this condition was detected by using an access to the stream
object. However, it's possible to rely only on the QCS by checking the
value from <rx.offset> field. This is a better solution which completely
remove the superfluous dependency between hq-interop and the stream
layer.
src/hq_interop.c