You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know is it still in your list of priorities, but I found out that your library does not want to work with ASIHTTPRequest correctly. My AFNetworking requests finished successfully, but ASIHTTPRequest request that starts synchronously never leaves this loop (ASIHTTPRequest:765, method -startSynchronous):
if (![self isCancelled] && ![self complete]) {
[self main];
while (!complete) {
[[NSRunLoop currentRunLoop] runMode:[self runLoopMode] beforeDate:[NSDate distantFuture]];
}
}
After Nocilla calls -requestFinished this local variable (complete) stays the same.
The text was updated successfully, but these errors were encountered:
yuriy-tolstoguzov
changed the title
ASIHTTPRequest synchronous requests never ends with stub
ASIHTTPRequest synchronous request with stub never ends
Jan 26, 2016
[NSDate distantFuture] is going to cause this code to wait indefinitely and never check your complete variable. Change this to something like [NSDate dateWithTimeIntervalSinceNow:1.0] and see if that helps.
If you still see issues, provide sample code so that we can test/reproduce ourselves and look into it.
I don't know is it still in your list of priorities, but I found out that your library does not want to work with ASIHTTPRequest correctly. My AFNetworking requests finished successfully, but ASIHTTPRequest request that starts synchronously never leaves this loop (ASIHTTPRequest:765, method
-startSynchronous
):After Nocilla calls
-requestFinished
this local variable (complete
) stays the same.The text was updated successfully, but these errors were encountered: