macournoyer/thin — pull request #132 by MasterLambaster (2012-09-10 11:40:29+00:00)
Title: Make proper response on exception

Thin server close connection without response when exception handled in connection. This change use following approach for exception handling:

* invalid request - respond with 400(Bad request) and close connection including persistent one
* `pre_process` exception including unhanded app one - respond with 500(Internal server error) and do not close persistent connections.
* `post_process` - no response, close connection