• 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: DO and Sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DO and Sleep


  • Subject: Re: DO and Sleep
  • From: AurĂ©lien HugelĂ© <email@hidden>
  • Date: Mon, 7 Nov 2005 09:43:45 +0100

There is a bug in DOs that make the NSConnections from the client to the server block (and NEVER die nor timeout !!!) when the server is put to sleep (no problem when the server is shut down or the process is killed or terminated).
This is due to a low level socket feature that i can not really explain, but it seems related to wake from sleep via ethernet admin connexion (look at ssh connections that never dies with a asleep server....)


The only way to this is to add your own timeout mechanism (with the use of a NSTimer) and to EXCLUSIVELY use oneway qualified message. I know it is boring... but as you know, DO at apple are not the priority, it is clear from all the DO messages you will find on this list....

Hope this helps...

On 7 nov. 05, at 05:10, Julien Guimont wrote:

No I don't but should I? You mean listen to the notification and try to reestablish the connection if it drops. I'll have to try.

Julien

On Nov 6, 2005, at 11:00 PM, Jim Correia wrote:

On Nov 6, 2005, at 9:41 PM, Julien Guimont wrote:

I know there is many things happening when the computer goes to sleep. I have a problem with distributed objects and sleep. It seems that my proxy is not able to recover the connection to the server. Am I supposed to do something to make it work? Look out for sleep/wake up notifications and reconnect to the server?

Listening for sleep/wake notifications sounds like it is too low level.


Do you listen for NSConnectionDidDieNotification and take appropriate action?

Jim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gumitech.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >DO and Sleep (From: Julien Guimont <email@hidden>)
 >Re: DO and Sleep (From: Jim Correia <email@hidden>)
 >Re: DO and Sleep (From: Julien Guimont <email@hidden>)

  • Prev by Date: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
  • Next by Date: Quartz/TLayer mod to create window via action fails "Could not connect the action"
  • Previous by thread: Re: DO and Sleep
  • Next by thread: Fwd: DO and Sleep
  • Index(es):
    • Date
    • Thread