[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Stop listening on http server when accept() returns Too Many Open Files



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Nick,

On 09/21/2010 03:31 AM, Nick Mathewson wrote:
>> Having no idea what your test harness is capable of, couldn't one set
>> ulimit -n some_low_value, start a listener, create connections until the
>> error callback is called, and then ...?
> 
> Ick; that approach  *would* work, but it's mostly launched from C, so
> instead of doing a ulimit -n, you're looking at a setrlimit, which
> implies that we need to do the necessary autoconf stuff to see if we
> _have_ getrlimit, etc.
> 
> I guess if we've gotta, we've gotta. :p

Perhaps you can get EPIPE "Broken Pipe" more easily; fork then kill that
process involved in the pipe, that sort of thing.

Best regards,
   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkyYofoACgkQkDLqNwOhpPjjsACgt7nwRi/4naF8SwMS7ZdgyELK
CQQAnj7TCF55UYlLaB+jHS3/t9Onv72Z
=+GMy
-----END PGP SIGNATURE-----
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.