Timeout for AFNetworking

I am using AFJSONRequestOperation to upload images.

When loading image numbers, some requests are not executed with a timeout error.

I tried

AFJSONRequestOperation *operation = ...
[operation start];

and

AFJSONRequestOperation *operation = ...
[operations addObject:operation];
...
[client enqueueBatchOfHTTPRequestOperations:operations progressBlock:nil completionBlock:nil];

However, still no luck.

I think the countdown begins when the operation is created.

So, should I plan queries one by one for my own algorithm?

+5
source share
1 answer

, AFNetworking NSOperations, . , , /. , . iPhone , , ( , ).

( AFHTTPClient, ) - , NSOperationQueueDefaultMaxConcurrentOperationCount, , .

+1

All Articles