Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSConnection, NSSocketPort, and timeouts



On 2007 Mar, 29, at 5:04, patrick machielse wrote:

Calling:

//  no effect
[connection setRequestTimeout:5.0];

doesn't make a difference, although I believe it should.

Probably you're not doing anything wrong. I noticed the same fixed 75 seconds with


   -[NSMutableURLRequest setTimeoutInterval]

and when I searched the list archives I found this to be quite a known issue, that this timeout is completely broken. Interesting that you've now found the same issue with NSConnection.

The solution I used, to shorten the timeout, was to time it out with a separate NSTimer.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >NSConnection, NSSocketPort, and timeouts (From: patrick machielse <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.