QUIC: improved huffman decode debug tracing.

winshining winshining at 163.com
Tue Oct 31 13:06:03 UTC 2023


Previously, only HTTP2 used huffman encoding (gRPC is util now
HTTP2 based), as HTTP3 becomes available, both of them uses huffman
encoding. But existed debug log in huffman decode function is hard
coded using "http2" prefixes, if a client transports an incorrect
huffman encoded field value in an HTTP3 request, it will give an
erroneous log. With the patch, it will properly log a bad field value.
Alternatively, removing "http2" prefixes only is ok, but it can not
differentiate whether it is caused by an HTTP2 or an HTTP3 request.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20231031/34f19d69/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: huff_decode_debug.diff
Type: application/octet-stream
Size: 5767 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20231031/34f19d69/attachment.obj>


More information about the nginx-devel mailing list