[Twisted-Python] Detecting idle connection with perspective broker

2010-04-30 Thread Gabriel González
Hi there, I wrote a small server application with PB but now I have some problem with client disconnection. When I have a idle connection, the logout method at server never is called (this method let me have a list of current logged users) and then client appears always connected to server. I can

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