Skip to content

Commit

Permalink
Fix for #203 [runtime] Tomcat 6 disconnection detection broken
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Mar 1, 2012
1 parent ee3cfeb commit 1bd02fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class TomcatCometSupport extends AsynchronousProcessor {
private static final Logger logger = LoggerFactory.getLogger(TomcatCometSupport.class);

public static final String COMET_EVENT = "CometEvent";
private final static String SUSPENDED = Tomcat7CometSupport.class.getName() + ".suspended";
private final static String SUSPENDED = TomcatCometSupport.class.getName() + ".suspended";

private static final IllegalStateException unableToDetectComet
= new IllegalStateException(unableToDetectComet());
Expand Down Expand Up @@ -108,6 +108,7 @@ public Action service(HttpServletRequest req, HttpServletResponse res)
} else {
event.setTimeout(Integer.MAX_VALUE);
}
req.setAttribute(SUSPENDED, true);
} catch (UnsupportedOperationException ex) {
// Swallow s Tomcat APR isn't supporting time out
// TODO: Must implement the same functionality using a Scheduler
Expand Down

0 comments on commit 1bd02fa

Please sign in to comment.