Re: [Twisted-Python] Polling from Twisted

2009-04-28 Thread hoooooosety
-python 抄送: 主题: [Twisted-Python] Polling from Twisted Hi, this is my first mail to the list. I am writing a server using Twisted, extending LineOnlyReceiver. In it I maintain a list of clients connected. I'd like to poll every client for certain status information every 30 seconds. Which

Re: [Twisted-Python] Polling from Twisted

2009-04-28 Thread Lucas Taylor
On 4/28/09 4:11 AM, Juanjo Conti wrote: Another question. Thinking twisted (and thinking about performance), it's ok to loop every 30 seconds over the clients asking their status or should be better to schudle a new polling rutine starting 30 seconds from now every time a client is

Re: [Twisted-Python] Polling from Twisted

2009-04-28 Thread Jean-Paul Calderone
On Tue, 28 Apr 2009 14:57:31 -0300, Juanjo Conti jjco...@gmail.com wrote: I'll 400 clients in the first deploy and some thousands later. Do you think are many? You might want to consider a more efficient protocol. For example, when a client connects, you could tell it that you want it to send

[Twisted-Python] Polling from Twisted

2009-04-27 Thread Juanjo Conti
Hi, this is my first mail to the list. I am writing a server using Twisted, extending LineOnlyReceiver. In it I maintain a list of clients connected. I'd like to poll every client for certain status information every 30 seconds. Which is the correct approach to implement this? Thanks in