开发者

asihttprequest timeout

I am using asihttprequest to connect and submit data. I use the timeout option but 开发者_StackOverflow社区it is not working!

[request setTimeOutSeconds:20];
    [request setDelegate:self];

    [request startAsynchronous];

It continues to timeout in 10 seconds which is the default value. Anyone had the same problem? The data i send is a string with 3 letters.


It works for me.

First off, make sure you've using the most recent version of ASIHTTPRequest.

IF that doesn't fit it, try setting a breakpoint inside the body of the first if in ASIHTTPRequest.m selector shouldTimeOut - check the value of [self timeoutSeconds] and secondsSinceLastActivity. One of them must be wrong if you're getting a timeout; if it's timeoutSeconds trace back and see why it's not getting set to 20 seconds.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜