Every so often, my iPhone app gets into a state where network requests always time out, even if other apps work fine (and can even access the same sites). This isn't obviously correlated with changes in network availability, and happens both on 3G and over WiFi. Any suggestions on how to diagnose the problem?
(FWIW, the app uses MonoTouch and HttpWebRequest, but I suspect whatever's going wrong is lower-level.)
Note: The problem persists through backgrounding the app and changing the network configuration; the only fix seems to be to kill the app and re-launch it.
Updates: I've tried making use of Reachability
, but to no effect. Reachability.InternetConnectionStatus
always returns ReachableViaWiFiNetwork
(or ReachableViaCarrierDataNetwork
, depending; likewise IsHostReachable()
always returns true. Runtime.StartWWAN()
seems to make no difference.