Bug 41514 - HttpClient with NSUrlsession or not, does not break nor recover when wifi is disabled and 3G still enabled
Summary: HttpClient with NSUrlsession or not, does not break nor recover when wifi is ...
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.8 (tvOS / C7)
Hardware: PC Windows
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-06-05 09:26 UTC by softlion
Modified: 2016-07-20 13:22 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description softlion 2016-06-05 09:26:36 UTC
HttpClient with or without NSUrlsession/CFSession, never throws an exception nor recover the http link when wifi is disabled and 3G is still enabled.

To reproduce:
- open an http streaming url from a webradio, loop on read, log packet sizes
- run app on device where 3G and Wifi are enabled and connected

Wifi is used by the connection by default. Disable Wifi only. 3G is still enabled. No exception occurs, and no more packets read are logged.
With ModernHttpClient, a WebException occurs and the app behave as excepted.

Also when using NSUrlSession or CFNetwork in xamarin studio options, HttpClient can not be used as a singleton anymore to make multiple simultaneous calls. It seems HttpClient is now stateful instead of stateless.
Comment 1 Alex Soto [MSFT] 2016-06-07 05:33:37 UTC
Hello, thanks for reaching us, in order to speed things up please include your full build logs, crash reports (if any), test case (to reproduce) and all version informations.

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).

Providing a concrete test case will definitely help a lot to determine what is going on  in a much faster fashion, this will eliminate the what code you used guess work ;)
Comment 2 Sebastien Pouliot 2016-06-09 01:31:47 UTC
> Also when using NSUrlSession or CFNetwork in xamarin studio options, HttpClient can
> not be used as a singleton anymore to make multiple simultaneous calls. It seems
> HttpClient is now stateful instead of stateless.

That's a different issue (it's the handlers, not HttpClient) -> #41628
Comment 3 Vincent Dondain [MSFT] 2016-07-20 13:22:30 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!