mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
an activity_interval Arc::AtomicU32 is shared between the connection manager thread and the main net thread. Every time there is a packet received, the activity interval is bumped to 0. If two interval polls pass, then a more expensive wlan_status() call is issued to the COM to see if we're really still connected. On a typcial network, the ARP traffic alone is sufficient to keep the status timeout from happening. The status interval is currently set at slightly over 10 seconds, so if you fall off the network entirely, about 20 seconds will pass before an automatic rejoin is issued. This can be adjusted by tuning the POLL_INTERVAL_MS variable inside the net service's connection_manager.rs module. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||