Module: WifiWand::TimingConstants
- Defined in:
- lib/wifi_wand/timing_constants.rb
Constant Summary collapse
- DEFAULT_WAIT_INTERVAL =
Poll hardware state twice a second to balance responsiveness with CPU usage.
0.5- STATUS_WAIT_TIMEOUT_LONG =
Allow up to 15 seconds when we expect a full association cycle (driver load + authentication + DHCP) before declaring failure.
15- STATUS_WAIT_TIMEOUT_SHORT =
Use a shorter window for quick retries such as rapid on/off toggles.
5- WIFI_STATE_CHANGE_WAIT =
Many Realtek/Broadcom chipsets need multiple seconds to report link-up/-down. Value was 0.05s originally but was raised to 5s after repeated flake reports.
5.0- NETWORK_CONNECTION_WAIT =
Wait long enough for DHCP + captive portal redirects before the next poll.
10.0- TCP_CONNECTION_TIMEOUT =
NetworkConnectivityTester timeouts Integration tests stub out sockets, so 0.25s keeps specs fast while still tolerating async cleanup; production needs longer timeouts to avoid flaky results on slow or degraded networks. Increased from 2s to 5s after observing intermittent internet on/off events during logging, which indicates connectivity checks were timing out due to network latency rather than actual connectivity loss.
5- DNS_RESOLUTION_TIMEOUT =
5- OVERALL_CONNECTIVITY_TIMEOUT =
6- FAST_TEST_INTERVAL =
Spec helper interval for rapid polling in deterministic unit tests.
0.1- EVENT_LOG_POLLING_INTERVAL =
Default polling interval for event logging (in seconds)
5- HTTP_CONNECTIVITY_TIMEOUT =
HTTP-level captive portal check timeout (in seconds) Needs to be long enough for a full HTTP round-trip on slow networks. Tests use a short value to keep specs fast.
5