• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds


  • Subject: Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 6 Jul 2008 22:48:41 -0700


On 2008 Jul, 05, at 15:55, email@hidden wrote:

But when i run the app, the "After" statement with "timed out" message is logged after 30 seconds from the "Before" statement. When I set the timeoutInterval between 30.1 to 59.9, it is printed after 60 seconds and so on. I don't know how to get it to work in desired time intervals. Any help would be appreciated.

Kanny, I noticed about two years ago that I could never get the 10- second timeouts that I wanted using NSURLConnection and setting the timeout in the NSURLRequest as you are doing which, as far as I know, is the only way to do it. (Well, actually you can make the request mutable and then set it, but the result is the same.) Then I read that others had reported the same thing in the list archives, and since this was intolerable for my app, I ended writing my own whole stupid class that set up a thread with a timer to work around the problem.


I am developing a Leopard-only app now and planned to re-test NSURLConnection within the next few days, hoping that it has been fixed. I therefore find your report very disappointing.

You are using Leopard I presume?

Has anyone else tested the URL Loading System with sub-30-second timeouts lately?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds
      • From: Jerry Krinock <email@hidden>
References: 
 >NSURLConnection timeoutInterval only works in multiples of 30 seconds (From: email@hidden)

  • Prev by Date: Re: Mysterious NULL Coming From NSUserDefaults
  • Next by Date: Re: Mysterious NULL Coming From NSUserDefaults
  • Previous by thread: NSURLConnection timeoutInterval only works in multiples of 30 seconds
  • Next by thread: Re: NSURLConnection timeoutInterval only works in multiples of 30 seconds
  • Index(es):
    • Date
    • Thread