I removed some of the signals that are more advanced than I want to
write. After we get things working solid we'll need to go back and
revisit the hot code swapping, halting workers, and log handling.
There's still a weird racey lockup when hitting it with ab. I don't have
httperf installed on this machine so I can't try a different tool to see
if its just ab acting weird. I'm pretty sure I've seen ab do this before
so I'm not too concerned.
I based this on the BaseHTTPServer request handler class because I had
issues with the other request handler. This one is having issues as well
so I should go back to Benoit's but I'm starting to slide towards sleep.
Remoed alot of code before starting to add more. Trimmed as much as
possible to get to the point that I understood what was going on in each
place.
Split the server code into multiple objects to help my sanity. Arbiter
is now the main class in the master process that keeps track of child
processes and so on and such forth.
The Worker class is responsible for handling incoming requests from the
server socket passed to its constructor.