On Thu, Jan 10, 2002 at 10:42:39PM -0500, Jason Boxman wrote:
> I think I have it figured out, now, but for clarification.
> 
> If I have a session that does something with a SocketFactory, and I want to 
> implement and internal timeout, I should do a delay_set( 'event', 120 ), then
> for each successive success event, an alarm_adjust( id, 0 ) followed 
> immediately by an alarm_adjust( id, 120 )?

The first alarm_adjust() call is redundant.  The alarm should not be
moved when the delta time is zero seconds.  From around line 2215 in
Kernel.pm:

  # Nothing to do if the delta is zero.
  return $kr_events[$alarm_index]->[ST_TIME] unless $delta;

-- Rocco Caputo / [EMAIL PROTECTED] / poe.perl.org / poe.sf.net

Reply via email to