hush/networking
Denys Vlasenko 28634924f0 udhcpc: account for script run time
Based on the following user report:

I ran into an issue where I was seeing a long delay in the scripts called
in udhcp_run_script. I was using an old version of OpenWrt (kamikaze)
and a satellite modem. An NTP script was being called and the modem
would sometimes take a long time to respond to the DNS lookup when
it was offline.

This delay started affecting my lease time. The lease that I would
get from my satellite modem before it was online would be short:
only 60 seconds. The delay with NTP and the modem would typically
be about 18 seconds. This would cause the first DHCP renew request
from dhcpc to be a little late. Under certain circumstances,
I could even see the first DHCP renew to occur after the lease
had expired!

function                                             old     new   delta
udhcpc_main                                         2816    2837     +21

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2014-12-21 16:10:22 +01:00
..
2014-12-21 16:10:22 +01:00
2013-01-14 15:57:44 +01:00
2011-07-08 05:47:49 +02:00
2012-03-19 12:22:57 +01:00
2013-01-14 01:34:48 +01:00
2014-02-10 09:51:03 +01:00
2011-12-06 18:59:55 +01:00
2014-01-09 20:09:43 +01:00
2010-11-28 23:01:18 +01:00
2014-03-05 18:58:15 +01:00
2014-08-27 16:01:25 +02:00
2011-07-25 16:35:44 +02:00
2013-05-12 02:13:24 +02:00