On Tue, 28 Apr 2009 14:57:31 -0300, Juanjo Conti 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 you its
status onc
I'll 400 clients in the first deploy and some thousands later. Do you
think are many?
2009/4/28, 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 sta
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 conne
Thanks both for th soon replies.
My code looks a lot like Lucas suggested (I was messing the stop stuff).
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
On 4/27/09 5:06 PM, Juanjo Conti wrote:
> 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 c
juanjo,
you could use twisted.internet.task module to implement this, try LoopingCall,
it's easy to use.
more info in this
page,http://twistedmatrix.com/projects/core/documentation/howto/time.html
2009-04-28
hoosety
发件人: Juanjo Conti
发送时间: 2009-04-28 08:07:26
收件人: twisted-pytho