Using Nginx with chunking

Arun John (arujohn) arujohn at
Wed Aug 12 13:05:13 UTC 2015

Hi Maxim,

Sorry for the confusion.

But even for range requests, it should return the bytes requested,
correct? Am I missing any configuration?


On 8/12/15, 6:23 PM, "nginx on behalf of Maxim Dounin"
<nginx-bounces at on behalf of mdounin at> wrote:

>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
>nginx mailing list
>nginx at

More information about the nginx mailing list