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:
Dridi Boukelmoune 2022-03-30 07:58:23 +02:00 committed by Willy Tarreau
parent eda36f1c23
commit 4bd53c397c
1 changed files with 3 additions and 1 deletions

View File

@ -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
* 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
* 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)
{