Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: select/poll bug?
On Sun, 2008-08-03 at 19:27 +0100, Roy Marples wrote:
> On Sun, 2008-08-03 at 13:36 -0400, Steven M. Bellovin wrote:
> > On Sun, 3 Aug 2008 13:18:14 -0400
> > "Greg A. Woods; Planix, Inc." <woods%planix.ca@localhost> wrote:
> > > 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.)
>
> When a laptop comes out of suspension, it should inform the DHCP client
> to renew it's lease as it may be on a different subnet now.
Thinking about it, dhcpcd may do that by itself anyway as the link
should be flagged as no carrier and then detect carrier -> up. In which
case dhcpcd will RENEW on your behalf.
Thanks
Roy
Home |
Main Index |
Thread Index |
Old Index