in reply to Fastcgi, howto deal with exit?
You don't want to exit, you want to return from the serve method so you go through the while loop again to process the next request.