On Mon, Dec 8, 2008 at 9:36 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] >> Subject: request for enlightening - StandardSession and expiring flag > >> Correct me if I'm wrong, but if two threads come in simultaneously >> into this method, wouldn't they both bypass the first check for >> expiring==true and the synchronized block would be executed twice? > > Probably, but we can't tell for sure without knowing whether or the > expiration process sets manager = null. If it does, then the expired field > is simply a mild performance enhancement to avoid blocking during session > expiration. > > However, a quick browse through the code didn't turn up any calls that would > clear the manager field directly (e.g., recycle()) during expiration; of > course, I could have just missed it. If there is no clearing of the manager > field done by something called within the synchronized block, then yes, this > is a bug.
I'm wondering whether this https://issues.apache.org/bugzilla/show_bug.cgi?id=46193 can be related. Leon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]