kennethreitz/requests — pull request #1940 by sigmavirus24 (2014-03-05 03:08:13+00:00)
Title: Handle both exceptions possible while consuming a socket

This fixes #1939 and part of @zackw's rehaul of redirection.

To better test this, I'd like to add Betamax as a test dependency. Also, as a separate PR I plan to kill the usage of `RuntimeError` in `Response#content`. That's awful and the community consensus is that nothing should ever raise that.