Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Lots of timeouts using WebClient

$
0
0

I have been using WebClient for sometime now and experience quite a few timeouts when phone network connections are good. Like WiFi in my house. This seems to get worse on an iPhone4 as a factoid but happens on both Android, iPhone5s, and simulator. I am creating a new Task for each web call via Task.Factory.StartNew and calling WebClient synchronously from that task using UploadValues. I have subclassed WebClient to have a 20 second timeout.
I sometimes need to make synchronous calls to sequence web requests that is why I do it this way. Is there anything wrong with this approach that might be causing me problems? Is another approach better Ted


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>