[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...

Tom Elrod tom.elrod at jboss.com
Thu Sep 21 11:59:05 EDT 2006


  User: telrod  
  Date: 06/09/21 11:59:05

  Modified:    src/main/org/jboss/remoting  LeasePinger.java
  Log:
  JBREM-602 - fixed bug where could possibly set negative lease period value when a client had disconnected and re-evaluating new lease period to use.
  
  Revision  Changes    Path
  1.8       +1 -1      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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- LeasePinger.java	20 Sep 2006 18:54:36 -0000	1.7
  +++ LeasePinger.java	21 Sep 2006 15:59:04 -0000	1.8
  @@ -184,7 +184,7 @@
            {
               ClientHolder clientHolder = (ClientHolder) itr.next();
               long clientHolderLeasePeriod = clientHolder.getLeasePeriod();
  -            if (clientHolderLeasePeriod < tempPingPeriod)
  +            if (clientHolderLeasePeriod > 0 && clientHolderLeasePeriod < tempPingPeriod)
               {
                  tempPingPeriod = clientHolderLeasePeriod;
               }
  
  
  



More information about the jboss-cvs-commits mailing list