Yelp/zygote — pull request #43 by baris (2012-10-05 02:27:04+00:00)
Title: Fixes for #36 and #39

A bunch of fixes on worker handling. Fixes #36 and #39.

This is mostly better error handling but there is also a behavioral change. Zygote worker now keeps tracks of its children and we don't send pids when shutting it down.

Tested with siege and pathoc (commands below) w/ and w/o sending HUP to master in a loop also w/ and w/o defining max-requests.

Siege command:
siege -c 100 -t=10m http://host:port/

pathoc command: (http://corte.si/posts/code/pathod/pythonservers/index.html)
pathoc -n 10000 -p 8888 -t 1 localhost 'get:/:b@10:ir,"\x00"'