> I'm trying to solve an issue where after a time out of 4 requests
> (maxConcurrentOperationCount=4), the remaining requests in the queue
> are not being processed anymore even though
> shouldCancelAllRequestsOnFailure is set to NO.
I'm aware of the issues with ASIWebPageRequest and maxConcurrentOperationCount. I'll try to get a fix out this weekend. I also have a few other fixes and improvements for ASIWebPageRequest waiting to go, and an alternative class in the works (see https://groups.google.com/d/msg/asihttprequest/kX3oZUc_3DM/r9GBx_-EJqkJ).
Best,
Ben
There is a temporary fix for the problem that works for me. The problem is,upon request timeout ASIWebpageRequest never calls super class(ASIHttpRequest) method markAsFinished which makes the timed out request to remain in the queue.
I made the changes to ASIWebPageRequest.m
1.In markAsFinished method
}
Added the [super markAsFinished] call in case of an error.
In externalResourceFetchFailed method
(void)externalResourceFetchFailed:(ASIHTTPRequest *)externalResourceRequest
{
if([[self externalResourceQueue] shouldCancelAllRequestsOnFailure]){
[self failWithError:[externalResourceRequest error]];
}
}
After making these changes i was able to download the webpage eventhough there are few timeouts and failures.
Note: Need to add the line [[self externalResourceQueue]
setShouldCancelAllRequestsOnFailure:NO]; to the methods parseAsHTML and
parseAsCSS as mentioned in the bug.
--
You received this message because you are subscribed to the Google Groups "ASIHTTPRequest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/asihttprequest/-/RitNdbIA8L4J.
To post to this group, send email to asihttp...@googlegroups.com.
To unsubscribe from this group, send email to asihttpreques...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/asihttprequest?hl=en.