tags:

views:

67

answers:

1

What is the connection time out in the case of iphones. How long will the compiler wait for a response after a request have been made??

+1  A: 

Using NSURLConnection, the timeout is set in the NSURLRequest, and the default in the NSMutableURLRequest request is 60 seconds, and can be changed using the setTimeoutInterval method.

http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableURLRequest/setTimeoutInterval:

Andrew Kuklewicz