tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java
Date Tue, 19 Apr 2005 18:56:58 GMT
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message