kennethreitz/requests — pull request #725 by muhtasib (2012-07-13 19:25:50+00:00)
Title: Differentiate between two types of timeout errors from urllib3

This is a fix for issue #699

A simple solution was to bubble up the error from urllib3. TimeoutError inherits from _HTTPError, so we could just add a line and raise a Timeout.

The error message will indicate whether the error is of type socket timeout or of type no connections available in the connection pool.