/sunicorn

Simple Unicorn

Primary LanguagePython

sunicorn

sunicorn is an educational example of a forking webserver, utilizing a unix socket to handle distriubting inbound requests accros a pool of child worker processes. It's adapted from Ryan Tomayako's ruby implementation here.

Running

In one window...

python server.py

and another...

echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242
echo 'dental plan' | nc localhost 4242