DHCP initial timeout 0.25s from 4s

Operating Systems / Haiku - Fredrik Holmqvist [gmail.com] - 25 March 2017 08:42 EDT

Connecting to wifi is very slow, there are several issues. Easiest to find and fis is that on my wifi DHCP always took 4s, as first request fails. Still investigating why.. Reducing timeout to 0.25s makes DHCP process fast.

Moved timout handling into its own struct, and changed state timeout from max(remaing, 60s) to min(remaining, MAX_TIMEOUT) Not sure about that change, but why would you want a max value that is at least 60s?

3bbff30 DHCP initial timeout 0.25s from 4s
src/servers/net/DHCPClient.cpp | 122 ++++++++++++++++++++++-------------------
src/servers/net/DHCPClient.h | 5 +-
2 files changed, 68 insertions(+), 59 deletions(-)

Upstream: cgit.haiku-os.org

  • Share