pulp/pulp — pull request #386 by jdob (2013-03-19 15:20:41+00:00)
Title: 919155 - Handle connection refused errors

Pretty simple fix, just needed to know the exception type that occurs when the server isn't running.

I added in a bit of checking in case socket.error ever uses a non-111 error code. We can flush that out further if we ever run into it, but it felt safer than interpretting all socket.error instances as connection refused. I'm open to changes if anyone knows those libraries better.

I'm open to suggestions on verbiage as well.