-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 6.5.3
-
Component/s: None
-
None
-
None
When toggle server push instantly, the response of stop comet server push would override the request of start in some situation, the code snippets as shown below:
public static final ExecutorService EXECUTOR_SERVICE = Executors.newSingleThreadExecutor(); @Command public void toggltServerPush() throws InterruptedException { final Desktop desktop = Executions.getCurrent().getDesktop(); desktop.enableServerPush(true); desktop.enableServerPush(false); }