Browse files

Fixed issue 188,adds xmemcached.heartbeat.max.fail.times enviroment v…

…ariable
  • Loading branch information...
1 parent f8e020f commit 6a5be1773f0ff9c299f5610b3e1f2010fbc6caea @killme2008 committed Mar 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/net/rubyeye/xmemcached/impl/MemcachedHandler.java
View
4 src/main/java/net/rubyeye/xmemcached/impl/MemcachedHandler.java
@@ -183,7 +183,9 @@ private void checkHeartBeat(Session session) {
}
private static final String HEART_BEAT_FAIL_COUNT_ATTR = "heartBeatFailCount";
- private static final int MAX_HEART_BEAT_FAIL_COUNT = 5;
+ private static final int MAX_HEART_BEAT_FAIL_COUNT = Integer
+ .parseInt(System.getProperty("xmemcached.heartbeat.max.fail.times",
+ "3"));
final static class CheckHeartResultThread implements Runnable {

0 comments on commit 6a5be17

Please sign in to comment.