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

how to debug network calls hanging

$
0
0

After a while my network calls just start hanging. My server code never executes so it seems like the calls are waiting on network handles. In other words, it seems like I'm leaking network connections. Thing is though, I am disposing all my network requests and responses which I assume releases the underlying network resources. Not sure how to verify that though.

I'm using the NativeMessageHandler from ModernHttpClient packages for most requests and the built in HttpClientHandler for auth requests (cookie based auth and ModernHttpClient doesn't handle cookies well.. or at all really. grrrr).

So like I said I'm disposing all of my requests and responses, though I am caching the HttpClient's that are creating the requests.

I'm having a hard time finding any documentation on what might be going wrong or how to profile this sort of thing. I'm a relative newbie at mobile development and not sure what tools there are out there or how to use them.

Does anyone have any ideas on why the network calls are hanging? Any suggestions on tools to use or how to figure out what the problem is?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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