• 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
DO disconnect when main thread blocked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DO disconnect when main thread blocked


  • Subject: DO disconnect when main thread blocked
  • From: Ben Einstein <email@hidden>
  • Date: Sun, 24 Aug 2008 12:54:40 -0400

Hi,

I have multiple DO connections to a "client" system over the LAN (technically, each of 4 systems is a server, but it doesn't much matter). The 4 systems check to ensure my system is alive by "pinging" it every few seconds with a simple - (BOOL)clientIsThere method. This ping routine runs in a separate runloop on the servers. Everything works great.

Now, if I press and hold a button (say, a popup button or any menu item) for more than the DO timeout, the servers don't get a response, and disconnect themselves. So users that aren't necessarily sure of what they're doing and need to look around for a bit, will loose their connections. I think the answer to this problem is to somehow put the client objects in a different thread, but I'm not sure how to do that.

Has anyone else had this problem? Is there an easy fix?

Thanks,
Ben Einstein
_______________________________________________

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: DO disconnect when main thread blocked
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Semi-transparent, blurred NSWindow background?
  • Next by Date: Re: Nil Object Crashing KVO
  • Previous by thread: Re: Semi-transparent, blurred NSWindow background?
  • Next by thread: Re: DO disconnect when main thread blocked
  • Index(es):
    • Date
    • Thread