Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115191 - Strange behaviour of dhcpcd with regard to timeout setting
Summary: Strange behaviour of dhcpcd with regard to timeout setting
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-11 06:30 UTC by Erik
Modified: 2005-12-11 09:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2005-12-11 06:30:00 UTC
It seems like a high timeout setting for dhcpcd makes it wait extra long time 
even when getting an IP-addres. Here are some numbers: 
 
timeout | actual time | result 
10s     | 20.555s     | FAILURE 
10s     | 20.561s     | FAILURE 
10s     | 20.564s     | FAILURE 
11s     | 22.541s     | FAILURE 
11s     | 22.545s     | FAILURE 
12s     | 16.646s     | SUCCESS 
12s     | 16.764s     | SUCCESS 
12s     | 16.987s     | SUCCESS 
20s     | 20.568s     | SUCCESS 
20s     | 20.578s     | SUCCESS 
25s     | 25.567s     | SUCCESS 
25s     | 25.979s     | SUCCESS 
30s     | 29.030s     | SUCCESS 
60s     | 28.837s     | SUCCESS 
60s     | 28.993s     | SUCCESS 
60s     | 29.005s     | SUCCESS 
 
Timeout was set in /etc/conf.d/net as dhcpcd_eth0="-HD -t <timeout>". Time was 
measured with "time /etc/init.d/net.eth0 start". 
 
According to this result, I should set the timeout to 12s to get the fastest 
system startup. But why could it not be as fast when setting it to anything, 
for example the default of 60s? What is going on? Is the DHCP-server hurrying 
to serve an addres if the client urges it to be fast? 

Reproducible: Always
Steps to Reproduce:
 



DHCP Client Daemon v.2.0.0
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-11 09:32:08 UTC
What DHCP server is installed and is it authorative? 
 
Also, do you see the same behaviour with other DHCP clients? Others are 
dhclient (net-misc/dhcp) pump and udhcpc (net-misc/udhcp).