Skip to main content

Module netchange

Module netchange 

Source
Expand description

The OS’s network-change notifications, so a switch of Wi-Fi, a VPN coming up or a cable pulled shows at once, not at the next probe of a service already believed down (up to a minute) or at the next failed request.

A change makes every service due for a probe ([super::Shared::network_changed_at]). The OS reports a change as a burst (the link, then its addresses, then its routes, and a Wi-Fi roam repeats it), and right after it DNS often can’t answer yet, so [settle] waits for the burst to end and probes once.

Platforms. Windows has it (NotifyIpInterfaceChange). Linux (netlink) and macOS (NWPathMonitor) don’t yet: [Watch::start] returns None there and the probes run as before, on their own schedule. This is a known gap, not an error.

Modules§

no_watch