Re: DO and Sleep
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