Skip to content

Conversation

@adamshiervani
Copy link
Contributor

The JetKVM DHCP client was taking 30+ seconds to acquire an IP address, causing delays to access the UI after boot.

1. Reduced DHCP timeout from 30s to 5s
DHCP servers respond in milliseconds; the 30s timeout was designed for physical interface initialization, not DHCP protocol operations. Added a separate timeout for the DHCP setup.

2. Added exponential backoff (1s → 2s → 4s → 8s)
After every 4 attempts per 5s, we sleep for an increasing amount of seconds, capped at 8s.

This makes the entire DHCP dance significantly faster.

@adamshiervani adamshiervani requested a review from ym October 28, 2025 17:41
@adamshiervani adamshiervani merged commit 79098d3 into dev Oct 28, 2025
5 checks passed
@adamshiervani adamshiervani deleted the fix/dhcp-timeout-handling branch October 28, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants