[Twisted-Python] Detecting idle connection with perspective broker

Gabriel González gabriel at cttc.upc.edu
Fri May 14 04:42:47 EDT 2010


ok, thanks!

Gabriel.

On Thu, 2010-05-13 at 13:56 +0000, exarkun at twistedmatrix.com wrote:
> On 12 May, 09:36 am, gabriel at cttc.upc.edu wrote:
> >Ok, and there's any method to know when this object will be collected 
> >or
> >if really don't have more references?. How can I know what users are
> >logged for PB to test if these objects have been deleted correctly?
> 
> The realm (which you supply) creates all the user objects.  So you're in 
> complete control.  If you want your realm to track all the users it has 
> created, it can.
> 
> Jean-Paul
> >
> >thanks,
> >
> >Gabriel
> >
> >On Tue, 2010-05-11 at 13:42 +0000, exarkun at twistedmatrix.com wrote:
> >>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
> >>
> >>_______________________________________________
> >>Twisted-Python mailing list
> >>Twisted-Python at twistedmatrix.com
> >>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> >
> >
> >--
> >Aquest missatge ha estat analitzat per MailScanner
> >a la cerca de virus i d'altres continguts perillosos,
> >i es considera que estFDet.
> 
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


-- 
Aquest missatge ha estat analitzat per MailScanner
a la cerca de virus i d'altres continguts perillosos,
i es considera que està net.




More information about the Twisted-Python mailing list