Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
GitHub or Developer Community 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.
While setting up a httpclient with System.Net.Http, customer is unable to set Timeout Property to a value greater then 60 seconds.
Steps to reproduce:
1. Open attached projects
2. Build and deploy it on simulator.
3. Observed that it deploying successfully.
4. Click on the "Test" button to start the HttpClient request
- insert breakpoint at line 67 of TestRequestViewModel.cs to see Timeout Property set to 180 seconds
5. Service will cut out at 60 seconds
I was able to reproduce issue on my system using:
Xamarin Studio 5.7.1 (build 17)
Xamarin.iOS - Version: 18.104.22.168
Xcode - Version 6.1.1 (6A2008a)
Mac OS 10.10.2
Dropbox link to project: https://www.dropbox.com/s/n2b349z3sty17r4/XamarinTimeoutBug.zip?dl=0
Marek, this looks similar to bug #13200.
I get The operation couldn’t be completed. (NSURLErrorDomain error -1001.)
You are using ModernHttpClient which appears to completely ignore any timeout value.
Quickly looking at ModernHttpClient source code it needs to set this property