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

Socket Closed error

$
0
0

Hi,

I'm developing an application with Xamarin Forms 2.3.4.247, Prism 6.3.0 and the CrossConnectivity Plugin for Xamarin.

My application does a lot of http requests, and every time I make one I do this check.
CrossConnectivity.Current.IsConnected
and then
CrossConnectivity.Current.IsRemoteReachable(url)

but sometimes when later executing my http requests to the same URL, I get the error Socket Closed

I'm using System.Net.HttpClient for http requests. The error is random and happens with various hosts. I haven't been able to reproduce the error at will, it occurs erratically.

Is there any way of finding the cause of this error? Does anybody know how to fix it?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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