Skip to content

Commit

Permalink
Fixed issue with immediate disconnects on RPC servers not implementin…
Browse files Browse the repository at this point in the history
…g persistent connections.

Signed-off-by: jedi95 <jedi95@gmail.com>
  • Loading branch information
jedi95 committed Oct 12, 2011
1 parent 30f8386 commit 66287e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion minerutil/_newclient3420.py
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,6 @@ def _finishResponse(self, rest):
self._disconnectParser(Failure(reason))
else:
self._giveUp(Failure(reason))
self.abort()


def _disconnectParser(self, reason):
Expand Down
3 changes: 2 additions & 1 deletion minerutil/client3420.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 66287e7

Please sign in to comment.