sendfile() failed (22: Invalid argument

Kingsley Foreman kingsley at internode.com.au
Tue May 8 01:38:14 MSD 2007


upgraded, im sure the 700 people who were connected to our mirror love me 
right about now :)

Kingsley

----- Original Message ----- 
From: "Kingsley Foreman" <kingsley at internode.com.au>
To: <nginx at sysoev.ru>
Sent: Tuesday, May 08, 2007 6:54 AM
Subject: Re: sendfile() failed (22: Invalid argument


> ill upgrade as soon as there is a gentoo portage file for it
>
> ----- Original Message ----- 
> From: "Igor Sysoev" <is at rambler-co.ru>
> To: <nginx at sysoev.ru>
> Sent: Tuesday, May 08, 2007 12:15 AM
> Subject: Re: sendfile() failed (22: Invalid argument
>
>
>> On Mon, May 07, 2007 at 09:27:27AM +0930, Kingsley Foreman wrote:
>>
>>> i running 64bit 0.5.19
>>
>> In 0.5.20 there is additional debug logging concerning Linux sendfile.
>> Could you make debug log of failed request and send it to me ?
>>
>>> ----- Original Message ----- 
>>> From: "Evan Miller" <emmiller+gmane at gmail.com>
>>> To: <nginx at sysoev.ru>
>>> Sent: Monday, May 07, 2007 6:42 AM
>>> Subject: Re: sendfile() failed (22: Invalid argument
>>>
>>>
>>> >Kingsley Foreman <kingsley at ...> writes:
>>> >
>>> >>
>>> >>Hi guys Im just trying to work out what the cause of this error is
>>> >>
>>> >>crit] 29494#0: *788901 sendfile() failed (22: Invalid argument) while
>>> >>sending response to client
>>> >>It only appears to happen on 1 3gig file the file gets downloaded over
>>> >>1000
>>> >>times a day this happens about 5 times.
>>> >
>>> >What nginx version? The latest changelog (0.5.19) includes this:
>>> >
>>> >   *) Bugfix: the files more than 2G could not be transferred using
>>> >      sendfile and limit_rate on 64-bit platforms.
>>> >
>>> >   *) Bugfix: the files more than 2G could not be transferred using
>>> >      sendfile on 64-bit Linux.
>>> >
>>> >Possibly related? If you are running 0.5.19, I don't have a fix but I 
>>> >do
>>> >have a
>>> >workaround. Put "sendfile off;" in your config, and nginx will use a
>>> >different
>>> >system call to send the data.
>>
>>
>> -- 
>> Igor Sysoev
>> http://sysoev.ru/en/
>>
> 





More information about the nginx mailing list