Welcome! Log In Create A New Profile

Advanced

Re: sendfile EAGAIN support broken?

Maxim Dounin
January 06, 2011 02:14AM
Hello!

On Wed, Jan 05, 2011 at 08:01:32PM -0500, steveh wrote:

[...]

> Going through the code I couldn't figure our how any retry would be
> triggered / attempted.

This line in your debug log indicate that write event was
successfully registered:

2010/12/24 18:04:08 [debug] 27169#0: *21 kevent set event: 23: ft:-2 fl:0025

It should be triggered via event loop once write() will be
possible on connection in question.

> Quite happy to throw some debugging to try and
> identify the problem if someone can point me in the right direction.
>
> Don't think its possible to remove passenger out the equation as that's
> the only way I've been able to trigger this thus far.

The only suspicious thing in debug log you've provided is strange
number of bytes sent in initial sendfile() call - i.e. only first
two memory buffers, but not a single byte from file. And nothing
else happens as if not a single byte were read by other side.

Though quick look though passenger nginx module suggest it uses
unix sockets, and this somewhat explains the above - as unix
sockets do watermarks autotuning.

So the most possible reason is "other end" (i.e. your application
and/or passenger) not reading data from socket.

There are no any single sign which suggests there are something
wrong in nginx.

Maxim Dounin

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

sendfile EAGAIN support broken?

steveh December 24, 2010 05:01PM

Re: sendfile EAGAIN support broken?

steveh December 24, 2010 07:43PM

Re: sendfile EAGAIN support broken?

Piotr Sikora December 24, 2010 08:42PM

Re: sendfile EAGAIN support broken?

Maxim Dounin December 24, 2010 10:00PM

Re: sendfile EAGAIN support broken?

steveh January 05, 2011 08:01PM

Re: sendfile EAGAIN support broken?

Maxim Dounin January 06, 2011 02:14AM

Re: sendfile EAGAIN support broken?

steveh January 06, 2011 04:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
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