Welcome! Log In Create A New Profile

Advanced

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

October 12, 2009 09:35AM
I'm looking to test out nginx with the Slowloris tool (http://ha.ckers.org/slowloris/), and I noticed that the following error appears a LOT in the error logs at one point:
accept() failed (24: Too many open files) while accepting new connection

This is what happens:
1) started nginx on a Debian machine, and the Slowloris tool on another using default parameters (1000 connections, 100 sec timeouts)
2) connections are established, and data is sent via these connections
3) shortly after, the error log throws up the error 24 (too many open files) and all the connections are closed
4) the tool continues to run, although every thread has to reinitiate the connection (actually, the "attack" has stopped at step 3)

This tool basically works by sending a GET request for a random URI per thread
GET /$rand HTTP/1.1
and then keeps sending a short header every $timeout seconds in order to force the HTTP request to stay unfinished.

So...

a) what does error 24 mean in this case? I'm not sure whether the file descriptors limit has really been hit, with the tool set to 1000 threads only..?

b) how do async web servers like nginx handle unfinished requests like these (as opposed to process based servers like Apache)?
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: 112
Record Number of Users: 5 on July 11, 2016
Record Number of Guests: 271 on July 19, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready