Bug 30620 - incorrent handling of last_access and elapsed
Summary: incorrent handling of last_access and elapsed
Status: RESOLVED FIXED
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: Common (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 15:38 UTC by Rainer Jung
Modified: 2008-10-05 03:09 UTC (History)
0 users



Attachments
ajp_get_endpoint: initialization of "now" and jk_log format for "elapsed" (2.59 KB, patch)
2004-08-12 15:40 UTC, Rainer Jung
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Jung 2004-08-12 15:38:14 UTC
I have to small bugs and patches to report for mod_jk
jk/native/common/jk_ajp_common.c. They are present at least since 1.2.6 and
still in the CVS version. Both bugs are in method ajp_get_endoint.

1) Initialization of "now"

The variable is only initialized, if cache_timeout>0 or socket_timeout>0 (line
1754). But in lines 1783 and 1784 it is used every time an endpoint with
existing socket connection is found.

2) Format string in jk_log

The variable elapsed is unsigned, but the format string says %d instead of %u
(lines 1771 and 1787)

Please consider the small patch I will attach to this bug report.
Comment 1 Rainer Jung 2004-08-12 15:40:28 UTC
Created attachment 12404 [details]
ajp_get_endpoint: initialization of "now" and jk_log format for "elapsed"
Comment 2 Henri Gomez 2004-08-31 08:35:35 UTC
Commited thanks