details about HTTP/2 Huffman
tokers
zchao1995 at gmail.com
Thu Mar 29 02:06:57 UTC 2018
Hello!
I am wondering some details about HTTP/2 Huffman.
There is a statement (
http://hg.nginx.org/nginx/file/tip/src/http/v2/ngx_http_v2_huff_encode.c#l238
)
buf |= (ngx_uint_t) –1 >> pending;
I am confused about this statement, why should we set the low bits of but
to 1 (sizeof(buf) - pending).
On the other hand, i am interested in the the generation about the huffman
decode table (
http://hg.nginx.org/nginx/file/tip/src/http/v2/ngx_http_v2_huff_decode.c#l25
),
is this really a Huffman tree, which takes 4bits each time?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20180328/e1d910f4/attachment.html>
More information about the nginx-devel
mailing list