开发者

ASIHTTPRequest misses files

I'm using ASIHTTPRequest to download a list of 30 files but 2 or 3 (different) are always lost.

Is it po开发者_开发技巧ssible set the maximum number of connections per seconds?? I've tried with

- [[ASIHTTPRequest sharedQueue]  setMaxConcurrentOperationCount:1];  
- [cola setMaxConcurrentOperationCount:1];

But i don't have any luck...

Any help?

Thank you


I've solved this problem with:

[request setPersistentConnectionTimeoutSeconds:80];

[request setShouldAttemptPersistentConnection:NO];

The problem may be that Apache installed doesnt support persistent connections.

See Configuring persistent connections section in http://allseeing-i.com/ASIHTTPRequest/How-to-use for more info.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜