On Mon, Apr 18, 2011 at 2:25 PM, Mike Meyer
<mwm@mired.org> wrote:
Only if you also made the TCP/IP connection overhead trivial so you
could stop with HTTP/1.0 and not deal with HTTP/1.1. Failing that, the
most natural way to do this is:
forever do
accept the next connection
handle requests from connection in new child
wait for next events
if one is a client request, start the response
if one is a finished response, return it to the client
if one is something else, something broke, deal with it.
I.e, an event-driven loop for each incoming connection running in it's
own process.