Permalink
Browse files

RPCProtocol should catch timeouts too

  • Loading branch information...
1 parent 8d89717 commit bf3ebecdb8900b9feeb21dcf78d4c5ab58f3f5a3 @CFSworks CFSworks committed Nov 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 minerutil/RPCProtocol.py
View
@@ -57,7 +57,7 @@ def _doRequest(self, url, *args):
try:
self.connection.request(*args)
return self.connection.getresponse()
- except httplib.HTTPException:
+ except (httplib.HTTPException, socket.error):
self.connection.close()
self.connection = None
raise

0 comments on commit bf3ebec

Please sign in to comment.