Files
simplex-chat/apps
shum ffb0527755 ios: reconnect servers when network changes
iOS does not report the sockets of the previous network as broken, so
after switching between Wi-Fi and mobile the agent keeps using dead
sessions - setting network info does not drop them. Recovery only
happened when the OS finally failed the socket, via TCP keep-alive or
the SMP ping monitor, taking from ~90 seconds to tens of minutes.

Reconnect the servers on every network change after the first one, when
the network is online. Changes that keep the same network type, e.g.
switching between Wi-Fi networks, are not detected, as network info only
has the network type.
2026-08-17 12:56:35 +00:00
..
2026-08-17 12:14:28 +01:00