[Twisted-Python] Keeping a list of connected PB clients

Phil Christensen phil at bubblehouse.org
Mon Nov 20 09:19:43 EST 2006

On Nov 19, 2006, at 9:13 PM, Yi Qiang wrote:
> On 11/19/06, Phil Christensen <phil at bubblehouse.org> wrote: On Nov  
> 19, 2006, at 7:00 PM, Yi Qiang wrote:
> > There does not seem to be a corresponding clientConnectionLost
> > method for the Factory class.  Any suggestions would be appreciated.
> My approach to this was to put any post-connection cleanup in the
> Avatar's "logout" method.
> Will that method be called regardless of how the client disconnects  
> from the server?

Yeah, in my experience the server *always* detects the connection  
loss and calls logout.

Incidentally, this was with a standard reactor on a UNIXish system;  
I'm relatively sure this works this way on all platforms.


More information about the Twisted-Python mailing list