|
|
@ -133,15 +133,12 @@ public class LongPollingService {
|
|
|
|
if (isFixedPolling()) {
|
|
|
|
if (isFixedPolling()) {
|
|
|
|
timeout = Math.max(10000, getFixedPollingInterval());
|
|
|
|
timeout = Math.max(10000, getFixedPollingInterval());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
long start = System.currentTimeMillis();
|
|
|
|
|
|
|
|
List<String> changedGroups = Md5ConfigUtil.compareMd5(req, clientMd5Map);
|
|
|
|
List<String> changedGroups = Md5ConfigUtil.compareMd5(req, clientMd5Map);
|
|
|
|
if (changedGroups.size() > 0) {
|
|
|
|
if (changedGroups.size() > 0) {
|
|
|
|
generateResponse(rsp, changedGroups);
|
|
|
|
generateResponse(rsp, changedGroups);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (noHangUpFlag != null && noHangUpFlag.equalsIgnoreCase(TRUE_STR)) {
|
|
|
|
} else if (noHangUpFlag != null && noHangUpFlag.equalsIgnoreCase(TRUE_STR)) {
|
|
|
|
log.info("{}|{}|{}|{}|{}|{}|{}", System.currentTimeMillis() - start, "nohangup",
|
|
|
|
log.info("New initializing cacheData added in.");
|
|
|
|
RequestUtil.getRemoteIp(req), "polling", clientMd5Map.size(), probeRequestSize,
|
|
|
|
|
|
|
|
changedGroups.size());
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|