-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I've been trying to set the polling server push delay, but whenever I do anything to set it, the server push just stops working. There is no polling (I can see there is no polling by looking at the apache log), and nothing is pushed.
I have code that enables server push (Note: The server push is for a shared model... Maybe that's the problem...):
window.getDesktop().enableServerPush(true);
Then, the two ways I tried doing this according to the documentation are:
1.
window.getDesktop().setServerPushDelay(Constants.DEFAULT_SERVER_REFRESH_MIN,
Constants.DEFAULT_SERVER_REFRESH_MAX, Constants.DEFAULT_SERVER_REFRESH_FACTOR);
2.
Added the following to zk.xml:
<preference>
<name>PollingServerPush.delay.min</name>
<value>3000</value>
</preference>
<preference>
<name>PollingServerPush.delay.max</name>
<value>10000</value>
</preference>
<preference>
<name>PollingServerPush.delay.factor</name>
<value>5</value>
</preference>
If I don't do these, then everything works (but the polling is every 1 second). If I do either of these two, then the polling stops completely.
I do have some other code where we use polling differently, not using a model. I'll double-check those to see if they are working....
Asked: 2010-12-09 18:25:57 +0800
Seen: 254 times
Last updated: Dec 30 '10