Permalink
Browse files

Adjust HTTP timeouts

  • Loading branch information...
1 parent 1182eae commit de17288d5999a95b3220dc6f2987379ad6d609f5 @CFSworks CFSworks committed Nov 3, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 minerutil/RPCProtocol.py
View
@@ -50,7 +50,7 @@ def _doRequest(self, url, *args):
class RPCPoller(HTTPBase):
"""Polls the root's chosen bitcoind or pool RPC server for work."""
- timeout = 15
+ timeout = 5
def __init__(self, root):
self.root = root
@@ -156,6 +156,8 @@ class LongPoller(HTTPBase):
callback function.
"""
+ timeout = 300
+
def __init__(self, url, root):
self.url = url
self.root = root

0 comments on commit de17288

Please sign in to comment.