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

[Libevent-users] How to limit http connections in libevent ?



Hi!
I'm using libevent with N processes (i'm using fork).

I need to limit connections/events per process. How can i do that ?
The only way i know is to use setrlimit(RLIMIT_NOFILE, but is this the best way to do that ? What is going to happen, when limit is reached ? Is error will occur ?