Closed weeweetan closed 1 year ago
Thanks for your PR! Could you give us some information about how to reproduce this issue?
A file with a low compression ratio is similar to scanning a PDF, and the file size is larger than the configured stream size
@weeweetan Please provide your nginx conf file and list the step to reproduce the issue. You have provided too little information for us to help you. Thanks!
qatzip configure qatzip_sw failover; qatzip_min_length 128; qatzip_buffers 16 8k; qatzip_chunk_size 64k; qatzip_stream_size 256k; qatzip_sw_threshold 256; qatzip_types text/plain text/css application/javascript application/json application/x-javascript text/javascript;
reproduce step 1、configure an upstream server, put the file on the upstream server 2、configure a server and location, and configure proxy_pass 3、use curl to request this file, with a gzip header
Thanks, issue is reproduced, but it seems this PR cannot fix it, we are working on it.
256k (stream_size) data is compressed to an integer multiple of 8k (qatzip buffer size), and 8k data is lost