On 2008 Jul, 05, at 15:55, [EMAIL PROTECTED] 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to