-
Notifications
You must be signed in to change notification settings - Fork 554
Try to fix build of PR #31 #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is a rewrite of the ModernHttpClient version of NSUrlSessionHandler, it has better handling for memory that provides a more consistant memory footprint. It accomplishes this by using NSInputStream for requests, and reading and disposing directly from NSData instead of transitioning the NSData to a byte[] array.
|
Build success |
|
That solved the build issue. There's one breaking change in the API: and it seems that the properties from
are no longer honoured, so they will be broken as the PR currently stands. |
|
Build success |
Mostly my comments in PR dotnet#174 * Add support for redirection [1] * Add support for credentials [1] * Add support for caching [2] * Remove 2nd dictionary lookup in GetHeaderSeparator * Avoid extraneous cast for credentialsToUse PR 177 [3] adds tests that ensure no commits can remove, or change default values, for handlers. [1] breaking changes (feature, not API) [2] breaking change (API removal) [3] dotnet#177
|
Build success |
|
@nberardi QA tests failed as the new implementation hangs while running one of our sample: https://github.com/xamarin/monotouch-samples/tree/master/HttpClient I'll have a look again later, but we're busy with WWDC/Xcode8 right now - in case you want to see what's going :) |
|
@spouliot I will have a look. Can I have access to the test procedures or script so that I can run in the same way the automated tests run? |
|
I have been able to reproduce the hang on the HTTPS request. Is that what you are also seeing? |
Mostly my comments in PR #174 * Add support for redirection [1] * Add support for credentials [1] * Add support for caching [2] * Remove 2nd dictionary lookup in GetHeaderSeparator * Avoid extraneous cast for credentialsToUse PR 177 [3] adds tests that ensure no commits can remove, or change default values, for handlers. [1] breaking changes (feature, not API) [2] breaking change (API removal) [3] #177
* Added rewritten NSUrlSessionHandler that handles memory better This is a rewrite of the ModernHttpClient version of NSUrlSessionHandler, it has better handling for memory that provides a more consistant memory footprint. It accomplishes this by using NSInputStream for requests, and reading and disposing directly from NSData instead of transitioning the NSData to a byte[] array. * Try to fix build of PR #31 * [foundation] Restore compatibility with the new NSUrlSessionHandler Mostly my comments in PR #174 * Add support for redirection [1] * Add support for credentials [1] * Add support for caching [2] * Remove 2nd dictionary lookup in GetHeaderSeparator * Avoid extraneous cast for credentialsToUse PR 177 [3] adds tests that ensure no commits can remove, or change default values, for handlers. [1] breaking changes (feature, not API) [2] breaking change (API removal) [3] #177 * [foundation] Restore compatibility with the new NSUrlSessionHandler Mostly my comments in PR #174 * Add support for redirection [1] * Add support for credentials [1] * Add support for caching [2] * Remove 2nd dictionary lookup in GetHeaderSeparator * Avoid extraneous cast for credentialsToUse PR 177 [3] adds tests that ensure no commits can remove, or change default values, for handlers. [1] breaking changes (feature, not API) [2] breaking change (API removal) [3] #177 * Try to fix build of PR #31 * prevent DEADLOCK in UI code * Added ConfigureAwait(false) to Task.Delay to prevent DEADLOCK when the stream is being awaited on the UI thread * added a few more ConfigureAwait(false) statments that were missed on first pass * Fix some small style issues. * Set the default value of AllowAutoRedirect to true.
|
Closing this as #932 landed with the same changes and extra fixes :) |
No description provided.