On 18 May 2007, at 01:08, Yen-Ju Chen wrote:

> If my network is down and I start StepChat, it will try to connect
> forever (no time out).

Yup, that's a known bug.  I keep thinking that, rather than adding  
the error handling that the connection stuff needs, I should move the  
whole thing over to using NSStream (now GNUstep supports it) and then  
not getting around to it.

> It would be nice that the main window shows up and indicate offline.

Yup, I agree.  Actually, I thought that did happen...

> When all my buddies disappear,
> I got crash on GNUstep saying index 0 is out of range (NSArray).
> It does not happens on Cocoa.

Hmm.  I'll check that...

> When StepChat is running and I unplug my network,
> StepChat does nothing because there is no message.
> It sends something every 10 seconds or so.
> Maybe it can use that check the status of network.

It sends something every 50 seconds (a single space character)  
because that seemed experimentally to be the least frequently you  
could poke the server without stateful firewalls deciding that your  
connection didn't exist anymore.

Unfortunately, then has to wait until the (kernel-specific) timeout  
is reached before the network stack decides that the connection has  
died.  When this happens, the next call to the socket will fail, and  
at this point it will try to reconnect.

David

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à