Dan's notes on server reactor implementation