Welcome! Log In Create A New Profile

Advanced

Re: fastcgi and X-Accel-Redirect

Jaroslav Gresula
December 21, 2009 04:52AM
Maxim Dounin wrote:
> Hello!
>
> On Sun, Dec 20, 2009 at 10:41:58PM +0100, Jaroslav Gresula wrote:
>
>> Jaroslav Gresula wrote:
>> > I use nginx 8.22 and flup (a fastcgi python server). When I send a file
>> > using the X-Accel-Redirect header then flup reports "Connection reset by
>> > peer" error - but nginx still delivers the file.
>> >
>> > Sending a file in the response body (i.e. the standard way) works well.
>> >
>> > Does anyone have any idea what might be causing that ECONNRESET?
>> >
>>
>> Update:
>>
>> Closer inspection in wireshark shows that nginx sends RST roughly in a
>> half of cases whereas the other half of connections is closed correctly.
>>
>> In the successful cases, nginx receives response headers + another 4
>> packets and then flup is the one who closes the connection.
>>
>> In the failed cases, nginx sends FIN,ACK followed by RST right after it
>> receives response headers.
>>
>> Any ideas why nginx is sending RST?
>
> nginx closes backend connection right after it receives full
> headers with X-Accel-Redirect. No idea why on your system this
> implies RST. Are you running nginx under Windows?
>
> Maxim Dounin

No, I'm on a linux box, Debian Lenny amd64.

--
Jarda
http://jagpdf.org


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

fastcgi and X-Accel-Redirect

Jaroslav Gresula December 20, 2009 02:16PM

Re: fastcgi and X-Accel-Redirect

Jaroslav Gresula December 20, 2009 04:52PM

Re: fastcgi and X-Accel-Redirect

Maxim Dounin December 20, 2009 08:02PM

Re: fastcgi and X-Accel-Redirect

Jaroslav Gresula December 21, 2009 04:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 198
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready