Handle socket errors in iter_content

My first PR for Requests, so I probably did something terribly wrong.

Closes #2144.
I missed the `setattr` call. I second this. Could you just change this quickly @romanlevin?