-
Notifications
You must be signed in to change notification settings - Fork 808
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
NSData dataWithContentsOfURL hangs #2298
Comments
Tried a unit test with: NSURL* url = [NSURL URLWithString:@"https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png"]; which completed successfully after a few seconds. Trying the associated sample app... |
Unit tests don't quite have a main loop the same way a normal application does. it may be worth testing this in an app (FoundationDevTests app for example) or a functional test. |
@ms-jihua just confirmed that this never really worked. Adding this to 1704 work. |
- Implement [NSURLConnection sendAsynchronousRequest:] - Re-implement [NSURLConnection sendSynchronousRequest:] on top of it, as stated in docs - Implement a not-yet fully-working setDelegateQueue: (callbacks are not yet called on it) - Remove NSURLConnectionState, replace with a lighter-weight, more flexible inner class - Changed the NSURLConnection functional tests to no longer run on the main run loop. This no longer works, which is correct (doesn't work on reference platform either) - Instead, run on another thread's run loop, and an operation queue. - Also added tests for sendSynchronousRequest: - Change parts of NSURLProtocol, NSRunLoop to use stricter typing - Change instances of NSRunLoopMode to actually say NSRunLoopMode instead of NSString* Fixes microsoft#2298
* Refactor parts of NSURLConnection - Implement [NSURLConnection sendAsynchronousRequest:] - Re-implement [NSURLConnection sendSynchronousRequest:] on top of it, as stated in docs - Implement a not-yet fully-working setDelegateQueue: (callbacks are not yet called on it) - Remove NSURLConnectionState, replace with a lighter-weight, more flexible inner class - Changed the NSURLConnection functional tests to no longer run on the main run loop. This no longer works, which is correct (doesn't work on reference platform either) - Instead, run on another thread's run loop, and an operation queue. - Also added tests for sendSynchronousRequest: - Change parts of NSURLProtocol, NSRunLoop to use stricter typing - Change instances of NSRunLoopMode to actually say NSRunLoopMode instead of NSString* Fixes #2298
Trying to fetch the contents of a URL hangs. For instance, this call will never return, even though the HTTP request completes successfully:
The text was updated successfully, but these errors were encountered: