Not sure about this, but would seem to make more sense that an endpoint gets cleaned 
out of the cache based on it's own last access time, not the last access time of the 
endpoint that has been taken out for use. Or is this intentional?

Andrew Gilbert

Index: jk_ajp_common.c
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c,v
retrieving revision 1.32
diff -u -r1.32 jk_ajp_common.c
--- jk_ajp_common.c     30 Oct 2002 22:12:20 -0000      1.32
+++ jk_ajp_common.c     15 Nov 2002 20:57:33 -0000
@@ -1420,7 +1420,7 @@
                 if (aw->cache_timeout) {
                     for ( ; i < aw->ep_cache_sz ; i++) {
                         if (aw->ep_cache[i]) {
-                            unsigned elapsed = (unsigned)(now - ae->last_access);
+                            unsigned elapsed = (unsigned)(now - 
+aw->ep_cache[i]->last_access);
                             if (elapsed > aw->cache_timeout) {
                                 jk_log(l, JK_LOG_DEBUG, 
                                     "In jk_endpoint_t::ajp_get_endpoint," \


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>

Reply via email to