On 22/11/2012 17:32, Brian Burch wrote:
> On 22/11/12 16:46, bugzi...@apache.org wrote:
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=54190
>>
>> --- Comment #3 from Mark Thomas <ma...@apache.org> ---
>> Your logic makes sense to me so my preference would be some more
>> comments.
> 
> I will think about our discussion and try to improve the comments and so
> hopefully avoid confusing future readers. I will submit a new
> self-contained patch and obsolete the current one.
> 
> 
> Sorry to drift slightly (but not completely) off-topic. Could you give
> me your off-the-cuff opinion on this:
> 
> Context.setSessionTimeout(int timeoutInMinutes) obliges tests that need
> to explore session timeout behaviour to hang the test process for at
> least 60 seconds, although most of that delay would be unnecessary.
> 
> I don't actually know how often the Manager (is that the right
> component?) scans to expire Sessions, but it must do it more frequently
> than once a minute.

It is the manager. It scans (goes to look up frequency) every 60 seconds
by default (10s for background process * 6 for processExpiresFrequency)

> I realise the method signature is part of a public api, but do you have
> a view on adding an alternative method to
> org.apache.catalina.core.StandardContext so that unit tests could set a
> session timeout in seconds?

I'm neutral. The delay doesn't really bother me. If you do go this way,
you'll need to modify processExpiresFrequency for the Manager as well so
checks happen more often.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to