Is it possible to customize request timeout?

Oct 12, 2010 at 5:49 PM

Is it possible to set timeout for HTTP requests generated by the library?

Oct 13, 2010 at 10:17 PM

Right now timeout is hardcoded in the HTTPHandler class but you are right we should make it a property in the class so the app can set it.

Claudio

 

Mar 12, 2011 at 12:46 AM

This is fixed in Version 1.2.

We made time interval a property in the ObjectContext class so the app can set it.
We added a member variable in ObjectContext and HttpHandler.

Users can now set the variable in sample app as below.

[proxy setTimeOutInterval:60.0];

If user don't set it, the default timeout will be 30.0.

(ObjectContext.m -
Line 167:
[self setTimeOutInterval:30.0];)

Mar 12, 2011 at 1:20 AM

This is fixed in Version 1.2. (Exactly the same as http://odataobjc.codeplex.com/discussions/230607?ProjectName=odataobjc)