Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASIHTTPRequest set timeout

How can I set the session timeout using ASIHTTPRequest ?

Thanks

like image 426
Dave Avatar asked Feb 23 '10 22:02

Dave


2 Answers

You can set the default timeout for ASIHttpRequest by using:

    [ASIHTTPRequest setDefaultTimeOutSeconds:20];

Is that what your looking for?

like image 170
jpoz Avatar answered Oct 05 '22 16:10

jpoz


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.

like image 37
Stephen Booher Avatar answered Oct 05 '22 18:10

Stephen Booher