intel / asynch_mode_nginx

Other
210 stars 61 forks source link

bugfix: 8k data is lost #61

Closed weeweetan closed 1 year ago

weeweetan commented 1 year ago

256k (stream_size) data is compressed to an integer multiple of 8k (qatzip buffer size), and 8k data is lost

ShuaiYuan21 commented 1 year ago

Thanks for your PR! Could you give us some information about how to reproduce this issue?

weeweetan commented 1 year ago

A file with a low compression ratio is similar to scanning a PDF, and the file size is larger than the configured stream size

ShuaiYuan21 commented 1 year ago

@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!

weeweetan commented 1 year ago

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;

weeweetan commented 1 year ago

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

ShuaiYuan21 commented 1 year ago

Thanks, issue is reproduced, but it seems this PR cannot fix it, we are working on it.