Browse files

Fixed issue with immediate disconnects on RPC servers not implementin…

…g persistent connections.

Signed-off-by: jedi95 <jedi95@gmail.com>
  • Loading branch information...
1 parent 30f8386 commit 66287e7493dfa44242a95ea17e0a1fab369b4bc0 @jedi95 committed Oct 12, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 Miner.py
  2. +0 −1 minerutil/_newclient3420.py
  3. +2 −1 minerutil/client3420.py
View
2 Miner.py
@@ -29,7 +29,7 @@
class Miner(object):
# This must be manually set for Git
- VER = (1, 6, 3)
+ VER = (1, 6, 4)
REVISION = reduce(lambda x,y: x*100+y, VER)
VERSION = 'v%s' % '.'.join(str(x) for x in VER)
View
1 minerutil/_newclient3420.py
@@ -1355,7 +1355,6 @@ def _finishResponse(self, rest):
self._disconnectParser(Failure(reason))
else:
self._giveUp(Failure(reason))
- self.abort()
def _disconnectParser(self, reason):
View
3 minerutil/client3420.py
@@ -659,7 +659,8 @@ class Agent(object):
"""
_protocol = HTTP11ClientProtocol
# Increase this limit if the miner can't get work fast enough
- maxConnections = 2 # RFC 2616: A single-user client SHOULD NOT
+ # This limit must also be increased on slow/unstable internet connections
+ maxConnections = 5 # RFC 2616: A single-user client SHOULD NOT
# maintain more than 2 connections with any
# server or proxy.

0 comments on commit 66287e7

Please sign in to comment.