Package: isc-dhcp-client
Version: 4.1.1-P1-9
Severity: normal
Tags: patch

dhclient delays the first packet for up to five seconds for no good reason. 
This is especially annoying on laptops because it increases the time from 
suspend/resume (with the WiFi turned off) until the system is fully usable 
again.

More information and a trivial patch [3] (also attached to this ticket) are 
available from the Fedora bugtracker (ticket #587070 [1]). Upstream has 
promised to remove the delay [2] several years ago but it's still there.


[1] https://bugzilla.redhat.com/show_bug.cgi?id=587070
[2] https://lists.isc.org/mailman/htdig/dhcp-users/2006-June/000933.html
[3] 
https://bugzilla.redhat.com/attachment.cgi?id=409949&action=diff&context=patch&collapsed=&headers=1&format=raw


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.6-xo1.5-2-00377-g7f5e423 (PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  isc-dhcp-common               4.1.1-P1-9 common files used by all the isc-d
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libssl0.9.8                   0.9.8o-1   SSL shared libraries

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
ii  avahi-autoipd                 0.6.26-1   Avahi IPv4LL network address confi
pn  resolvconf                    <none>     (no description available)

-- no debconf information
--- client/dhclient.c	2010/04/28 19:13:43	1.1
+++ client/dhclient.c	2010/04/28 19:17:01
@@ -594,9 +594,12 @@ 
 				else {
 					client->state = S_INIT;
 					/* Set up a timeout to start the
-					 * initialization process.
+					 * initialization process,
+					 * _immediately_, as agreed but never
+					 * applied by the ISC upstream
+	  https://lists.isc.org/mailman/htdig/dhcp-users/2006-June/thread.html#928
 					 */
-					tv.tv_sec = cur_time + random() % 5;
+					tv.tv_sec = cur_time - 1;
 					tv.tv_usec = 0;
 					add_timeout(&tv, state_reboot,
 						    client, 0, 0);

Reply via email to