GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
And because of this forced minimum 240-second timeout problem on 
iOS(https://devforums.apple.com/message/108087#108087, 
http://stackoverflow.com/questions/2736967/nsmutableurlrequest-not-obeying-my-ti
meoutinterval), can we implement our own timeout with NSTimer and 
NSURLConnection's cancel method?

Thanks.

Original comment by [email protected] on 10 May 2012 at 5:20

from google-api-objectivec-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
You can set a timer and call cancelTicket: to implement your own timeout.

Original comment by [email protected] on 10 May 2012 at 5:58

from google-api-objectivec-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Yes. But one more thing we offer in the framework, one less thing thousands of 
devs need to do.

Original comment by [email protected] on 10 May 2012 at 6:37

from google-api-objectivec-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
I don't think most apps should be setting a timeout at all. Users should be the 
ones to cancel requests. If the user isn't waiting on the fetch, there's no 
need for it to timeout.

Original comment by [email protected] on 10 May 2012 at 8:05

from google-api-objectivec-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
If I setup my own timeout with NSTimer and cancelTicket:, I have to duplicate 
timeout handling code in two places: one in the query's completionHandler, one 
in my timeout callback.

If GTLService setups the timeout, it should naturally return the timeout as an 
error in the query's completionHandler, just as the real NSURLConnection 
timeout, then I only need to simply handle that in the completionHandler.

Original comment by [email protected] on 12 May 2012 at 3:16

from google-api-objectivec-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Unless additional developers indicate a need for this functionality, I do not 
expect it to be incorporated into the library.

Original comment by [email protected] on 17 May 2012 at 1:56

  • Changed state: WontFix
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from google-api-objectivec-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.