开发者

ASIHTTPRequest misses files

开发者 https://www.devze.com 2023-02-17 09:58 出处:网络
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

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

精彩评论

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