Skip to content

Commit

Permalink
Fix for #896 #863
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Feb 11, 2013
1 parent 22a8017 commit 5e24426
Showing 1 changed file with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,33 +576,9 @@ public Enumeration<String> getInitParameterNames() {
if (sc.getServletContext() != null) {
sc.getServletContext().setAttribute(BroadcasterFactory.class.getName(), broadcasterFactory);
}
boolean found = false;
for (AtmosphereInterceptor i: interceptors) {
if (i.getClass().isAssignableFrom(TrackMessageSizeInterceptor.class)) {
found = true;
break;
}
}

for (Entry<String, AtmosphereHandlerWrapper> e : atmosphereHandlers.entrySet()) {
for (AtmosphereInterceptor i : e.getValue().interceptors) {
if (i.getClass().isAssignableFrom(TrackMessageSizeInterceptor.class)) {
found = true;
break;
}
}
}

for (String i: broadcasterFilters) {
if (i.equals(TrackMessageSizeFilter.class.getName())) {
found = true;
break;
}
}

if (!found) {
logger.warn("Neither TrackMessageSizeInterceptor or TrackMessageSizeFilter are installed." +
" atmosphere.js may receive glued and incomplete message.");
logger.info("Using BroadcastFilter: {}", i);
}

logger.info("HttpSession supported: {}", config.isSupportSession());
Expand Down

0 comments on commit 5e24426

Please sign in to comment.