details about HTTP/2 Huffman

tokers zchao1995 at
Thu Mar 29 02:06:57 UTC 2018


I am wondering some details about HTTP/2 Huffman.

There is a statement (

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 (

is this really a Huffman tree, which takes 4bits each time?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list