Skip to content
  • Beniamino Galvani's avatar
    dhcp: handle expiry by letting the client continue for some time · 17009ed9
    Beniamino Galvani authored
    Previously we would kill the client when the lease expired and we
    restarted it 3 times at 2 minutes intervals before failing the
    connection. If the client is killed after it received a NACK from the
    server, it doesn't have the chance to delete the lease file and the
    next time it is started it will request the same lease again.
    
    Also, the previous restart logic is a bit convoluted.
    
    Since clients already know how to deal with NACKs, let them continue
    for a grace period after the expiry. When the grace period ends, we
    fail the method and this can either fail the whole connection or keep
    it active depending on the may-fail configuration.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783391
    17009ed9