mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-08 22:50:02 +00:00
IMPORT: slz: mention the potential header in slz_finish()
There may be 2 or 10 bytes sent respectively for zlib and gzip. This is libslz upstream commit de1cac155ac730ba0491a6c866a510760c01fa9b
This commit is contained in:
parent
eda36f1c23
commit
4bd53c397c
@ -152,7 +152,9 @@ static inline long slz_encode(struct slz_stream *strm, void *out,
|
|||||||
* possibly pending bits from the queue (up to 24 bits), rounding to the next
|
* possibly pending bits from the queue (up to 24 bits), rounding to the next
|
||||||
* byte, then 4 bytes for the CRC when doing zlib/gzip, then another 4 bytes
|
* byte, then 4 bytes for the CRC when doing zlib/gzip, then another 4 bytes
|
||||||
* for the input length for gzip. That may about to 4+4+4 = 12 bytes, that the
|
* for the input length for gzip. That may about to 4+4+4 = 12 bytes, that the
|
||||||
* caller must ensure are available before calling the function.
|
* caller must ensure are available before calling the function. Note that if
|
||||||
|
* the initial header was never sent, it will be sent first as well (up to 10
|
||||||
|
* extra bytes).
|
||||||
*/
|
*/
|
||||||
static inline int slz_finish(struct slz_stream *strm, void *buf)
|
static inline int slz_finish(struct slz_stream *strm, void *buf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user