Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 52402 invoked from network); 11 Feb 2005 23:02:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Feb 2005 23:02:07 -0000 Received: (qmail 37696 invoked by uid 500); 11 Feb 2005 23:02:04 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 36920 invoked by uid 500); 11 Feb 2005 23:02:01 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 36905 invoked by uid 99); 11 Feb 2005 23:02:01 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Feb 2005 15:02:00 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j1BN1vNe027494 for ; Sat, 12 Feb 2005 00:01:57 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id j1BN1vBE027492; Sat, 12 Feb 2005 00:01:57 +0100 Date: Sat, 12 Feb 2005 00:01:57 +0100 Message-Id: <200502112301.j1BN1vBE027492@ajax.apache.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 33510] - recover_wait_time for workers in_error_state should be calculated using difftime() X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33510 ------- Additional Comments From chuck_betts@intuit.com 2005-02-12 00:01 ------- apache 1.3.28 mod_jk 1.2.8 tomcat 5.1.30 The two numbers I am referring to are the last two numbers on the logged line (42 < 3600). They are the time elapsed since the worker was determined to be in error, and the configured time in seconds before the worker is available to connect again. I've set it to 3600 here (an hour). The first number should be incrementing by one per second, and you can see in the first two logged lines it does. However, when the minute rolls over on the third line, you can see that the elapsed time jumps from 43 to 2475. I am assuming this is because the implementation of the time_t type that I compiled with does not simply just contain the number of seconds from an epoch. Reading a little on this I found that you are supposed to use the function difftime() in time.h to get an elapsed time value, instead of just subtracting two time_t values. The latter method is used on line 297 of jk_lb_worker.c, and this produces unexpected results. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org