Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: select/poll bug?

"Steven M. Bellovin" <> writes:
>> You still haven't said why you need a timer that can handle in one  
>> setting the span of the entire maximum possible lease time.  Why not  
>> set a regular interval timeout and decrement the elapsed time from
>> the lease TTL every time the timeout happens until finally there's no
>> time remaining on the lease, perhaps adjusting the interval of the
>> timeout as the lease nears its expiry time.
> Agreed.  (If memory serves, I've had problems with leases on laptops
> because the timer didn't run while it was suspended.)

libevent handles timeout queues quite nicely, fyi. It eliminates the
need to re-invent them.

Perry E. Metzger      

Home | Main Index | Thread Index | Old Index