Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-14 Thread Gabriel González
ok, thanks! Gabriel. On Thu, 2010-05-13 at 13:56 +, exar...@twistedmatrix.com wrote: > On 12 May, 09:36 am, gabr...@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 > >lo

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-13 Thread exarkun
On 12 May, 09:36 am, gabr...@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) create

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-12 Thread Gabriel González
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? thanks, Gabriel On Tue, 2010-05-11 at 13:42 +, exar...@twistedmatrix.com wrote: >

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-11 Thread exarkun
On 08:31 am, gabr...@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 met

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-05-11 Thread Gabriel González
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 disconnec

Re: [Twisted-Python] Detecting idle connection with perspective broker

2010-04-30 Thread Konrads Smelkovs
A simple solution could be to implement a ping method with client and have server ping client once every N seconds. At the same time, fire a delayed call for N+5 seconds. if delayed call is executed first, drop connection. -- Konrads Smelkovs Applied IT sorcery. 2010/4/30 Gabriel González > Hi