timeout interval option for http request
Hi
I need for a project to have a timeout greater then 1min (default timeout for NSMutableURLRequest).
Regards,
Julien
Have you tried using the existing timeout functionality? Elevate knows what request it's waiting on, and aborts it automatically.
Yes, but after some tests it doesn't work.
That makes sense; you want the request to go longer than one minute, rather than having the task's timeout take a certain amount of time, right?
Yes. I have to manage with huge JSON data and it can take a lot of time to be generated...
OK, that's perfectly reasonable. I hope your server is using async I/O though :).
I'd be glad to merge this if you changed the option name to request_timeout to differentiate it from the regular timeout option.
I'm interested by async i/o if you have some documentation :)