mturk       2005/04/19 11:56:58

  Modified:    util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  Update keepAliveCount after poll and maintain.
  
  Revision  Changes    Path
  1.12      +2 -0      
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java
  
  Index: AprEndpoint.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AprEndpoint.java  19 Apr 2005 16:46:12 -0000      1.11
  +++ AprEndpoint.java  19 Apr 2005 18:56:58 -0000      1.12
  @@ -815,6 +815,7 @@
                       // Pool for the specified interval
                       int rv = Poll.poll(serverPollset, pollTime, desc, true);
                       if (rv > 0) {
  +                        keepAliveCount -= rv;
                           for (int n = 0; n < rv; n++) {
                               // Check for failed sockets
                               if (((desc[n*4] & Poll.APR_POLLHUP) == 
Poll.APR_POLLHUP)
  @@ -842,6 +843,7 @@
                               maintainTime = 0;
                           }
                           if (rv > 0) {
  +                            keepAliveCount -= rv;
                               for (int n = 0; n < rv; n++) {
                                   // Close socket and clear pool
                                   Pool.destroy(desc[n*4+2]);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to