Re: Loss of Network Adress is DHCP Server failed for some hours



On Sun, Oct 1, Oliver Freyermuth <o freyermuth googlemail com> wrote:

Is this a bug, or a feature?

This is a bug.

I'm sure no standard requires the DHCP server to come back within 3
minutes. NetworkManager must keep retrying, forever.

Reported here:
http://bugzilla.suse.com/show_bug.cgi?id=584544

Workaround here:
https://build.opensuse.org/request/show/519609

--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -79,7 +79,7 @@ _LOG_DECLARE_SELF (NMDevice);
 /*****************************************************************************/
 
 #define DHCP_RESTART_TIMEOUT   120
-#define DHCP_NUM_TRIES_MAX     3
+#define DHCP_NUM_TRIES_MAX     -1UL
 #define DEFAULT_AUTOCONNECT    TRUE
 
 /*****************************************************************************/

Complete fix is to wipe all usage of DHCP_NUM_TRIES_MAX.


Olaf

Attachment: signature.asc
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]