facebook/tornado — pull request #577 by evanj (2012-08-02 15:16:53+00:00)
Title: simple_httpclient: Improved connection error messages

Previously, simple_httpclient reported "Connection closed" for everything. This confused me into thinking that my service was closing the connection in the middle of doing something, when in fact I had a dumb configuration error and it was actually getting "connection refused."

This change adds the exception info: HTTP 599: [Errno 61] Connection refused

Feel free to reject this, or maybe I should change it to only have error.strerror, which would look like:

HTTP 599: Connection refused