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?