On Tue, 21 May 2002 03:30, Steve Short wrote:
> Thanks for the reply.
>
> Here is why we raised this as an issue.  The Apache James mail server
> project is using this timer mechanism to implement a connection timeout on
> the SMTP port.  When it receives data on the the port, it calls
> resetTrigger to resets the timer.

ouch it is not really designed for that ! 
;)

>  If the timeout is 5 minutes, and there
> is constant SMTP activity, I estimate that this could lead to 15,000 or
> more invalid timer entries in the queue.  (10 message per second * 5 SMTP
> commands per message * 300 seconds).

Hmm. In this case you do need a extra thread to go through and remove stale 
messages. Alternatively we need to have the option to remove entrys rather 
than invalidating them. So when you configure scheduler you should be able to 
se a falg to say delete entry. By default it will just validate them (as this 
is more performance sensitive) but in cases like James you can also delete 
them.

-- 
Cheers,

Peter Donald


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to