Dave
Dave

Reputation: 363

ASIHTTPRequest set timeout

How can I set the session timeout using ASIHTTPRequest ?

Thanks

Upvotes: 14

Views: 12733

Answers (2)

jpoz
jpoz

Reputation: 2257

You can set the default timeout for ASIHttpRequest by using:

    [ASIHTTPRequest setDefaultTimeOutSeconds:20];

Is that what your looking for?

Upvotes: 40

Stephen Booher
Stephen Booher

Reputation: 6542

Given an instance of ASIHttpRequest, you can use

asiRequest.timeOutSeconds = 20;

This is useful if you only want to change the timeout from the default for one request.

Upvotes: 18

Related Questions