]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: emit HEADERS frames when facing HTX trailers blocks
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 09:56:26 +0000 (10:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Jan 2019 09:56:26 +0000 (10:56 +0100)
commit1bb812fd80715af2e5ddc6b973745f54b8008301
tree09218a1423b1594432998e5c1b2bcbff1c689091
parent0f8fb6b7f914882a37290178e11295264f0e0ea8
MEDIUM: mux-h2: emit HEADERS frames when facing HTX trailers blocks

Now the H2 mux will parse and encode the HTX trailers blocks and send
the corresponding HEADERS frame. Since these blocks contain pure H1
trailers which may be fragmented on line boundaries, if first needs
to collect all of them, parse them using the H1 parser, build a list
and finally encode all of them at once once the EOM is met. Note that
this HEADERS frame always carries the end-of-headers and end-of-stream
flags.

This was tested using the helloworld examples from the grpc project,
as well as with the h2c tools. It doesn't seem possible at the moment
to test tailers using varnishtest though.
src/mux_h2.c