[Twisted-Python] Detecting idle connection with perspective broker

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue May 11 07:42:10 MDT 2010


On 08:31 am, gabriel at cttc.upc.edu wrote:
>Thanks! that works for me, now I set a Timeout in server and I can 
>check
>if client is connected every 10 seconds.
>But now I have a last question about what's the better way to delete 
>the
>User(avatar) instance when the logout is done. In my logout method I
>delete database entries about the disconnected user, but how can I do 
>to
>clean User(avatarID) instance and where I have to do that.

The object will be collected by Python automatically when there are no 
more references to it.

Jean-Paul




More information about the Twisted-Python mailing list