Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 80170 invoked from network); 1 Oct 2006 07:42:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Oct 2006 07:42:12 -0000 Received: (qmail 76469 invoked by uid 500); 1 Oct 2006 07:42:05 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 76408 invoked by uid 500); 1 Oct 2006 07:42:04 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 76397 invoked by uid 500); 1 Oct 2006 07:42:04 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 76394 invoked by uid 99); 1 Oct 2006 07:42:04 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Oct 2006 00:42:04 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [209.237.227.198] ([209.237.227.198:60305] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 42/81-01321-B417F154 for ; Sun, 01 Oct 2006 00:42:03 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id AB2D87142E7; Sun, 1 Oct 2006 00:41:58 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 35746] - session manager should be immune to system clock time changes (solution provided) In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20061001074158.AB2D87142E7@brutus.apache.org> Date: Sun, 1 Oct 2006 00:41:58 -0700 (PDT) X-Spam-Rating: minotaur.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=35746 ------- Additional Comments From darryl@darrylmiles.org 2006-10-01 00:41 ------- While I agree with the general centiment that if an alternative algorithm works in more cases with no loss of performance that your idea maybe sound. But the following statement demonstrates your limited knowledge of what NTP goals are. (In reply to comment #4) > Whenever a user (or the ntp update agent/service/deamon) sets the date/time, > sessions may be lost. An NTP client does not reset the clock when it computes a variation. It makes the system clock tick faster or slower to narrow that variation over time. If its too far out NTP will not function and abort. Since TC is not a realtime application and runs largely on a multitaking OS a faster/slower clock is not ordinarly detectable by an appliction. Which is the point of running NTP. I'm a great believer that just as time never goes backwards that clock slew is not something that an application programmer has to deal with. This is one certainty of the universe for which computer concepts live within so as such its an underpins everything. If you want to change the time then do so in the BIOS before the operating system boots up, of the user changes the time force a device reboot. If the application of the device means you dont want this then you've going to have to look at NTP anyway. Some would argue that short sighted embeded device creators didn't provision an adequate mechanism to change the clock or keep it up-to-date. Since its a given that the accuracy of the clock source in the device while good isn't perfect (like most things) and the device's software relies heavily on absolute time to function. One question on your algorithm, is it written in the Java specification for the Thread.sleep() function that this has to be implmented in a way impervious to clock slew ? Or does that claim come from your experiments with a particular JVM implementation on the particular embeded device you have to hand ? It is no good building castles in the sand. -- 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: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org