We have a VPN solution that is intended to be long-running, so normally we just use a simple on-demand-rule: a single 'connect on any interface' rule. This lets us automatically reconnect the VPN after reboots.
However one of our users is reporting that sometimes the VPN will stay connected for days (up to a week even), but will still randomly disconnect with NEProviderStopReasonUserInitiated. And clearly he did not manually disconnect it. This has happened quite a few times now, always with the same stop reason.
Sometimes this happens when the device is in sleep for a long enough time, but not always.
Does anyone know what actually causes this to happen? and if there is any way around it?
@eskimo maybe?