in reply to
Multithreaded Socket Listener
You are re-inventing a well-worn wheel here ...
One process should sit in a select loop waiting for incoming requests, then it should enqueue those requests to send them to a phalanx of waiting servers that will each provide a response.
Wait! Wait! I just described FastCGI (and Plack).
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (176 votes),