Nginx stops sending file after ~1.5mb ?

Yo'av Moshe bjesus at gmail.com
Tue Jan 20 03:59:34 MSK 2009


Thanks.
I'm not an strace guru but I don't think it shows anything unusual...

http://paste-it.net/public/mffe731/

You can see download starts right at the beginning, and at 02:25:25 you can
see the last sendfile64 event. After that, no data was sent and I couldn't
find anything related to that in this strace log.

The only thing this strace log is telling me is that nginx knows that there
is still more data to send, since it recognized the right size of the file
in the beginning (line 13: sendfile64(22, 23, [0], *1950230)*), and it knows
it has more to send by the last sendfile event (line 1173: sendfile64(22,
23, [1618265], *331965*)).

What stops the sending?

Thanks again.
Yo'av.

On Mon, Jan 19, 2009 at 3:09 PM, Just Marc <marc at corky.net> wrote:

> strace your nginx instance and see what happens exactly when it stops
>
>
> Yo'av Moshe wrote:
>
>> It doesn't fail.
>>
>>        1904+1 records in
>>        1904+1 records out
>>        1950230 bytes (2.0 MB) copied, 0.0322329 seconds, 60.5 MB/s
>>
>> Also, I can fetch the file using SSH and it works fine, but not from HTTP
>> using nginx.
>>
>> Yo'av.
>>
>> On Mon, Jan 19, 2009 at 2:24 AM, Dave Cheney <dave at cheney.net <mailto:
>> dave at cheney.net>> wrote:
>>
>>
>>    dd if=/path/to/broken/file of=/dev/null bs=1024
>>
>>    ^ if this fails, maybe there is some underlying filesystem corruption.
>>
>>    Cheers
>>
>>    Dave
>>
>>    On Mon, 19 Jan 2009 01:35:24 +0200, Yo'av Moshe <bjesus at gmail.com
>>    <mailto:bjesus at gmail.com>> wrote:
>>    > Hey,
>>    > I talked with my VPS and they say the problem arise from my side.
>>    > It seems that only *some* files cannot be downloaded.
>>    >
>>    > http://www.noal.org.il/static/temp/barvazi.pdf is a 6.3MB file,
>>    and it
>>    > downloads just fine.
>>    > http://www.noal.org.il/static/temp/barvazi2.pdf is a 1.9MB file,
>>    but it
>>    > stops after 1.5MB.
>>    > Both files are PDF files, and changing their names didn't change
>>    anything.
>>    >
>>    > Any idea? Could it still be a VPS issue? It's seems so odd I'm
>>    not sure
>>    > what
>>    > to check...
>>    >
>>    > Thanks a lot.
>>    > Yo'av.
>>    >
>>    > On Mon, Jan 12, 2009 at 12:29 PM, Igor Sysoev <is at rambler-co.ru
>>    <mailto:is at rambler-co.ru>> wrote:
>>    >
>>    >> On Sun, Jan 11, 2009 at 08:46:58PM +0200, Yo'av Moshe wrote:
>>    >>
>>    >> > Hey,
>>    >> > Well, I am running CentOS 5.2 in a VPS.
>>    >> >
>>    >> > Is there anything I can do about it?
>>    >>
>>    >> It looks like VPS issue. In my test the file was being downloaded
>>    >> on good speed and then has stopped:
>>    >>
>>    >> fetch
>>    http://noal.org.il/static/uploads/u-20/%5B1231615256%5Dhozer.pdf
>>    >> %5B1231615256%5Dhozer.pdf                      69% of 1904 kB
>>     384 kBps
>>    >>
>>    >> > Thank you.
>>    >> >
>>    >> > On Sun, Jan 11, 2009 at 7:50 PM, Jure Pe??ar
>>    <pegasus at nerv.eu.org <mailto:pegasus at nerv.eu.org>>
>>    >> wrote:
>>    >> >
>>    >> > > On Sun, 11 Jan 2009 15:43:36 +0200
>>    >> > > "Yo'av Moshe" <bjesus at gmail.com <mailto:bjesus at gmail.com>>
>>    wrote:
>>    >> > >
>>    >> > > > Any idea would be kindly appreciated.
>>    >> > >
>>    >> > > What kind of OS environment are you using?
>>    >> > > I've seen similiar happenings in VPSes where tcp send
>>    buffers run
>>    >> > > out.
>>    >>
>>    >>
>>    >> --
>>    >> Igor Sysoev
>>    >> http://sysoev.ru/en/
>>    >>
>>    >>
>>
>>
>>
>>
>> --
>> Yo'av Moshe
>>
>
>
>


-- 
Yo'av Moshe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090120/b8e346d2/attachment.html>


More information about the nginx mailing list