Actually, compression is done by ZSTD_compressStream2
looping on apr_bucket_read
This requires processing the compression block by block (8KiB from what I have seen) and not as a stream.
Once the block processed, it must be flush with ZSTD_e_flush while on "real streamed mode" we could use ZSTD_e_continue :
to let "encoder decides when to output compressed result, for optimal compression ratio"
I’m not an expert on APR so my question is, could we get the bucket brigades data as a single stream?
I had a look on existing filter module src and bucket brigades documentation but didn’t find something relevant
Actually, compression is done by
ZSTD_compressStream2looping on
apr_bucket_readThis requires processing the compression block by block (8KiB from what I have seen) and not as a stream.
Once the block processed, it must be flush with
ZSTD_e_flushwhile on "real streamed mode" we could useZSTD_e_continue:I’m not an expert on APR so my question is, could we get the bucket brigades data as a single stream?
I had a look on existing filter module src and bucket brigades documentation but didn’t find something relevant