Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

AsyncWebrequest timeout not happening, when network adapter is switched

$
0
0

Hi,

When I try to make a web call, to get a stream of data (recursive call to get chunks of data), and when the network is switched from lan to wireless, it behaves differently for windows app and the same code on ios/mac.
Windows env gives this error - "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
While mono - does not timeout and continue to read from the stream.

Some background. This is an async call performed by the thread, and the timeout is manually implemented.
And this seems to be working in Windows, but not for mono on Mac, and it does not seem to throw an exception nor does it time out.
Any help or direction would be appreciated.

Thanks,
Mithun


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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