How does pound handle listening? From my naive look at the code, it
appears that the single worker process is listening on each socket,
and as poll() returns, the worker process walks all the sockets and
creates a separate thread for each new connection. That thread
handles the connection, then exits. Is this correct, or am I missing
something? Is there a way to limit the number of threads it creates?
Thanks,
--Dave
|