Re: [PATCH] gdhcp: adjust discovery/request timeout and retry values
Hi Pasi, On ke, 2014-07-16 at 22:30 +0300, pasi.sjoh...@jolla.com wrote: From: Pasi Sjöholm pasi.sjoh...@jollamobile.com Some dhcp servers are acting lazy (eg. Buffalo WBMR-G125) therefore 3 second timeout value for discovery or request is not enough. Adjusting the timeout value from 3 seconds to 5 will fix the problem together with adjusting the retry value not to increase the total time for waiting for getting the lease. --- gdhcp/client.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index 47ce2e8..7b47ad2 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -47,11 +47,11 @@ #include common.h #include ipv4ll.h -#define DISCOVER_TIMEOUT 3 -#define DISCOVER_RETRIES 10 +#define DISCOVER_TIMEOUT 5 +#define DISCOVER_RETRIES 6 -#define REQUEST_TIMEOUT 3 -#define REQUEST_RETRIES 5 +#define REQUEST_TIMEOUT 5 +#define REQUEST_RETRIES 3 typedef enum _listen_mode { L_NONE, The numbers look sane, ACK to this. Cheers, Jukka ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: [PATCH] gdhcp: adjust discovery/request timeout and retry values
Hi Pasi, On 07/17/2014 04:36 PM, Jukka Rissanen wrote: On ke, 2014-07-16 at 22:30 +0300, pasi.sjoh...@jolla.com wrote: From: Pasi Sjöholm pasi.sjoh...@jollamobile.com Some dhcp servers are acting lazy (eg. Buffalo WBMR-G125) therefore 3 second timeout value for discovery or request is not enough. Adjusting the timeout value from 3 seconds to 5 will fix the problem together with adjusting the retry value not to increase the total time for waiting for getting the lease. --- gdhcp/client.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index 47ce2e8..7b47ad2 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -47,11 +47,11 @@ #include common.h #include ipv4ll.h -#define DISCOVER_TIMEOUT 3 -#define DISCOVER_RETRIES 10 +#define DISCOVER_TIMEOUT 5 +#define DISCOVER_RETRIES 6 -#define REQUEST_TIMEOUT 3 -#define REQUEST_RETRIES 5 +#define REQUEST_TIMEOUT 5 +#define REQUEST_RETRIES 3 typedef enum _listen_mode { L_NONE, The numbers look sane, ACK to this. Patch applied. Thanks, Daniel ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
[PATCH] gdhcp: adjust discovery/request timeout and retry values
From: Pasi Sjöholm pasi.sjoh...@jollamobile.com Some dhcp servers are acting lazy (eg. Buffalo WBMR-G125) therefore 3 second timeout value for discovery or request is not enough. Adjusting the timeout value from 3 seconds to 5 will fix the problem together with adjusting the retry value not to increase the total time for waiting for getting the lease. --- gdhcp/client.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdhcp/client.c b/gdhcp/client.c index 47ce2e8..7b47ad2 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -47,11 +47,11 @@ #include common.h #include ipv4ll.h -#define DISCOVER_TIMEOUT 3 -#define DISCOVER_RETRIES 10 +#define DISCOVER_TIMEOUT 5 +#define DISCOVER_RETRIES 6 -#define REQUEST_TIMEOUT 3 -#define REQUEST_RETRIES 5 +#define REQUEST_TIMEOUT 5 +#define REQUEST_RETRIES 3 typedef enum _listen_mode { L_NONE, -- 1.9.1 ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman