tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: StandartSession.accessCount bug?
Date Tue, 31 Oct 2006 03:56:03 GMT

Mark Thomas wrote:
> Michael Kantarovich wrote:
>> Hi,
>> I'm using version 5.5.12. I noticed that sometimes sessions doesn't
>> expire after a "session-timeout". 
>> What do you think?
> That is

Wow. Some real yelling and screaming going on in that bug.

Can someone explain why "unsynchronized data" + "threaded access" !=
"non-threadsafe code"?

It doesn't take a genius to see that the accessCount variable there is
not threadsafe. And since Tomcat ought to be implemented such that
multiple threads can run successfully... WTF??!

I'm not sure what source of the bitter animosity towards synchronization
is in this case. Synchronization isn't a dirty word, especially when it
actually makes things work properly :(


View raw message