Using Nginx with chunking

Maxim Dounin mdounin at mdounin.ru
Wed Aug 12 12:53:06 UTC 2015


Hello!

On Wed, Aug 12, 2015 at 09:30:15AM +0000, Arun John (arujohn) wrote:

> Hello,
> 
> I have nginx configured to send files in chunks to remote 
> clients. The clients will contact the server to send it in 
> chunks of 1 MB each. I am using nginx version 1.8.0

You confuse chunks and range requests.  These are distinct things 
in HTTP.

> Currently I am running into an issue, where if the last chunk 
> size is very small (few bytes), the server doesn’t seem to the 
> send the chunk correctly because of which the clients would 
> re-try again for the same chunk. For some reason it is not able 
> to send the last chunk. I have attached the debug logs to the 
> thread. If you see the logs the last three writes seem to be for 
> the same chunk of size 6672 bytes

What makes you think that the problem is with nginx, and not with 
the client?

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list