aachyee / google-desktop-sdk

Automatically exported from code.google.com/p/google-desktop-sdk
0 stars 0 forks source link

Possible internal overflow in view.setInterval #97

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set view.setInterval to 4 hours (240x60x1000)
2. Wait a few weeks without rebooting
3. Task will start to be executed numerous times in a row without delay, 
instead of every four hours

What is the expected output? What do you see instead?
Should run every four hours. Instead it runs immediately one time after 
another. This causes the equivalent of a denial-of-service attack when 
numerous such clients access a web service at a constant time after 
Windows Update or some other event affecting the internal view.setInterval 
timer on numerous clients.

What version of the product are you using? On what operating system?
We see this behavior on the server side. Not sure what version end users 
have. They show Windows XP and Vista on the logs.

Please provide any additional information below.
This behavior seems to be consistent with an integer turning negative 
after overflowing, and causing repeat executions until the integer turns 
positive again. Given the above parameters, such incidents with clear 
activity peaks were observed for example on September 24, 2008 
(Wednesday), October 5, 2008 (Sunday), November 18, 2008 (Tuesday), 
December 24, 2008 (Wednesday), January 3 and January 6, 2009 (Saturday, 
Tuesday), February 5, 2009 (Thursday) and March 3rd, 2009 (Tuesday).

Original issue reported on code.google.com by cloa...@gmail.com on 10 Mar 2009 at 1:06