Welcome! Log In Create A New Profile

Advanced

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

Maxim Dounin
October 14, 2009 03:54AM
Hello!

On Tue, Oct 13, 2009 at 10:44:54PM -0400, gunblad3 wrote:

> Sorry for the late reply, was flooded with other things ;)
>
> I tried by adding
> worker_rlimit_nofile 10240;
> instead and it worked with 10000 connections.
>
> Have a few questions:
> 1) Is there a implicit default max number of file descriptors set for worker_rlimit_nofile?

It's you OS who sets limits, not nginx. Directive
worker_rlimit_nofile only needed when you want nginx to ask OS to
change limits for already running nginx process. By default (i.e.
without worker_rlimit_nofile set) nginx don't ask to change
limits.

> 2) How does worker_rlimit_nofile and ulimit affect the actual max number of file descriptors?

Basically, OS sets limits, ulimit shows them, worker_rlimit_nofile
asks OS to change limits. Result is something that OS decided to
do, usually minimum of worker_rlimit_nofile and global OS maxfiles
limit.

> 3) How does nginx handle unfinished requests that are taking a long time to complete sending? (slow upstream)

Nothing special. They are just handled. And when both OS and
nginx are properly tuned - nginx can handle lots of such (and
other) connections.

Maxim Dounin
Subject Author Posted

What does error 24 mean? Also how does nginx handle the Slowloris tool?

gunblad3 October 12, 2009 09:35AM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

Akins, Brian October 12, 2009 11:32AM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

gunblad3 October 13, 2009 10:44PM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

Maxim Dounin October 14, 2009 03:54AM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

gunblad3 October 14, 2009 07:17AM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

Maxim Dounin October 14, 2009 08:18AM

Re: What does error 24 mean? Also how does nginx handle the Slowloris tool?

gunblad3 October 19, 2009 01:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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