Welcome! Log In Create A New Profile

Advanced

Re: How come nginx is only accepting 1 connection?

Maxim Dounin
January 18, 2011 01:26PM
Hello!

On Wed, Jan 19, 2011 at 12:39:56AM +0800, He Shiming wrote:

> On Wed, Jan 19, 2011 at 12:33 AM, Roberto De Ioris <roberto@unbit.it> wrote:
> >
> >
> > Are you sure you are not running pylons with debug enabled ?
> >
> > It can cause some problems with multiprocess apps
> >
> > --
> > Roberto De Ioris
> > http://unbit.it
> >
>
> Hi, thank you all for your help. Eventually I came to the conclusion
> that during the uploading, nginx gets so busy with disk i/o, it can't
> process any other requests.
>
> It's a local testing so I'm uploading fairly large files to simulate
> the waiting. So it looks like there's no problem after all. I just
> have to figure out how to throttle upload speed to really simulate
> this.

Yep, indeed, you're right. While reading request body nginx
doesn't return to event loop until it's read all the data from
socket recv buffer. This may cause it keep calling recv() if
uploading over fast link and client_body_buffer_size is smaller
than socket's recv buffer.

Using bigger client_body_buffer_size (bigger than recv buffers
used) should help.

Maxim Dounin

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

How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 09:48AM

Re: How come nginx is only accepting 1 connection?

Roberto De Ioris January 18, 2011 10:04AM

Re: How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 10:10AM

Re: How come nginx is only accepting 1 connection?

Maxim Dounin January 18, 2011 10:22AM

Re: How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 10:32AM

Re: How come nginx is only accepting 1 connection?

Maxim Dounin January 18, 2011 10:58AM

Re: How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 11:26AM

Re: How come nginx is only accepting 1 connection?

Roberto De Ioris January 18, 2011 11:38AM

Re: How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 11:44AM

Re: How come nginx is only accepting 1 connection?

Maxim Dounin January 18, 2011 01:26PM

Re: How come nginx is only accepting 1 connection?

Sven 'Darkman' Michels January 18, 2011 10:34AM

Re: How come nginx is only accepting 1 connection?

He Shiming January 18, 2011 10:46AM

Re: How come nginx is only accepting 1 connection?

Roberto De Ioris January 18, 2011 10:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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