]> git.kaiwu.me - haproxy.git/commit
MINOR: xprt_qstrm: implement Tx buffering
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Apr 2026 08:42:44 +0000 (10:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 10 Apr 2026 08:20:52 +0000 (10:20 +0200)
commit47199ce89585ccae1a13ad967983c3ae45c7e046
tree74cd313a4313fae9e004f3ae44274b79a015238a
parentfb3b2687472a27c4b06dba3bf5533cfacf8c1df3
MINOR: xprt_qstrm: implement Tx buffering

This commit adds buffering on transmission for xprt_qstrm layer. This is
necessary in the rare case where send syscall only emits partial data.

A new <txbuf> member is defined in xprt_qstrm context. On first send
invokation, buffer is allocated and then the QMux transport parameters
frame is encoded. Then emission is performed via snd_buf and each time
the send function is invoked.
src/xprt_qstrm.c