Serving executables over web

matt davies mjdavies at
Fri Nov 7 18:26:13 MSK 2008


I've just worked out that download speed has absolutely nothing to do  
with client_max_body_size as Roxis correctly pointed out.  What was  
happening my end was that I had already successfully downloaded the  
exe once, so the next download of the same file was obviously much  
quicker :-)

The PDF I put on the site of roughly the same size was a very fast  
download straight away, so I'm guessing it's something to do with the  
mime types and how the PDF file was handled compared to the EXE file.

No clue as to what is happening now

Can anyone point me at any documentation on how nginx handles  
downloading files?

On 7 Nov 2008, at 13:26, matt davies wrote:

> Hi Roxis
> Well I've got a 10.3 mb file, if I set the client_max_body_size to  
> 10mb, it takes approximately 8 minutes to download.
> If I set it to client_max_body_size 15 mb it downloads at maximum  
> network speed.
> I've just tried switching it back and I'm promising you that is what  
> is happening without changing anything else.
> I think this might be a case of 'works for me' :-)
> matt
> On 7 Nov 2008, at 12:50, Roxis wrote:
>> On Friday 07 November 2008, matt davies wrote:
>>> aha!!
>>> Solved that too
>>> The file was marginally larger in size than the client_max_body_size
>>> variable in the  main nginx.conf size.
>>> Tweaked that up a bit and it flies down now.
>> client_max_body_size limits size of upload.
>> It has no effect on download.

More information about the nginx mailing list