[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ron Sigal
ron_sigal at yahoo.com
Wed Aug 8 01:47:22 EDT 2007
User: rsigal
Date: 07/08/08 01:47:22
Modified: src/main/org/jboss/remoting Tag: remoting_2_2_0_GA
LeasePinger.java
Log:
JBREM-783: Check for leasePeriod <= 0 in connectClient().
Revision Changes Path
No revision
No revision
1.8.2.12.2.7 +20 -15 JBossRemoting/src/main/org/jboss/remoting/LeasePinger.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LeasePinger.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/LeasePinger.java,v
retrieving revision 1.8.2.12.2.6
retrieving revision 1.8.2.12.2.7
diff -u -b -r1.8.2.12.2.6 -r1.8.2.12.2.7
--- LeasePinger.java 8 Aug 2007 00:10:23 -0000 1.8.2.12.2.6
+++ LeasePinger.java 8 Aug 2007 05:47:22 -0000 1.8.2.12.2.7
@@ -130,6 +130,11 @@
public void connectClient(long leasePeriod)
{
+ if (leasePeriod <= 0)
+ {
+ leasePeriod = defaultPingPeriod;
+ }
+
// if new client lease period is less than the current ping period, need to refresh to new one
if (leasePeriod < pingPeriod)
{
More information about the jboss-cvs-commits
mailing list