[Kss-devel] Optimizing polling with kss timeout

JCBrand jc at upfrontsystems.co.za
Thu Jun 14 22:15:23 CEST 2007


Balazs Ree wrote:
>> The messenger makes use of polling (using kss timeout) to ask the chat
>> service (that stores the messages) whether there are any new messages
>> for the currently logged in member.
>>
>> The kss:
>>
>> div#message-area:timeout {
>>     evt-timeout-delay: 2000;
>>     action-server: kss_update_message_area;
>>     kss_update_message_area-contact: currentFormVar('contact_id');
>> }
>>
>> When I shutdown the zope server that the messenger is running on, the
>> browser continues to poll. This causes the cpu usage of my pc to spike
>> every time a timeout fires. 
>>     
>
> The question is, what do you expect to happen when the server is shut 
> down? At least, this is not considered as normal operation for the core 
> plugin components. If this is eventually expected in your application, we 
> can suggest several things for you, but it only makes sense to say 
> anything if we understand what happens exactly.
>   
I shut down the server since it is running on my development machine and 
I wanted to see
how much of the cpu is used by azax alone.

That way I can get an idea what the load would be like when the server is
on a remote machine.
> As Godefroid said as well, not likely in this case. But you are 
> encouraged to use the trunk and report if you discover issues. It should 
> be as stable as before the merge.
>  
> I will let you know if poi is up and running and kindly ask you to file 
> this issue then so that it does not get forgotten.
>
> Thanks for your help in testing and calling our attention to this
Thanks for the feedback!

I'll make a checkout of the trunk.

Regards
JC







More information about the Kss-devel mailing list