Repository: zookeeper
Updated Branches:
refs/heads/branch-3.4 159ead6f1 -> 3289ebbaa
ZOOKEEPER-2788: remove unused variable MAX_CONNECTION_ATTEMPTS.
Author: Abraham Fine <afine@apache.org>
Reviewers: Michael Han <hanm@apache.org>
Closes #268 from afine/ZOOKEEPER-2788_3.4
Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/3289ebba
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/3289ebba
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/3289ebba
Branch: refs/heads/branch-3.4
Commit: 3289ebbaa48d85ceb9dc5154f5547f37cf7d300c
Parents: 159ead6
Author: Abraham Fine <afine@apache.org>
Authored: Wed May 31 20:55:57 2017 -0700
Committer: Michael Han <hanm@apache.org>
Committed: Wed May 31 20:55:57 2017 -0700
----------------------------------------------------------------------
.../org/apache/zookeeper/server/quorum/QuorumCnxManager.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/zookeeper/blob/3289ebba/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
----------------------------------------------------------------------
diff --git a/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java b/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
index cc45562..878008b 100644
--- a/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
+++ b/src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java
@@ -82,12 +82,7 @@ public class QuorumCnxManager {
// stale notifications to peers
static final int SEND_CAPACITY = 1;
- static final int PACKETMAXSIZE = 1024 * 512;
- /*
- * Maximum number of attempts to connect to a peer
- */
-
- static final int MAX_CONNECTION_ATTEMPTS = 2;
+ static final int PACKETMAXSIZE = 1024 * 512;
/*
* Max buffer size to be read from the network.
|