From 5d53c7d960cc1b96f4bd4f8f88bc4fe7ba3d8200 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 25 Oct 2012 22:10:22 +1100 Subject: [PATCH] 392237 Fixed 3.0 port of chat servlet - removed old dispatch branch --- test-jetty-webapp/src/main/java/com/acme/ChatServlet.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java index 906ba3315db..11461815c35 100644 --- a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java +++ b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java @@ -164,13 +164,6 @@ public class ChatServlet extends HttpServlet response.setContentLength(bytes.length); response.getOutputStream().write(bytes); } - else if (request.getDispatcherType()==DispatcherType.ASYNC) - { - // Timeout so send empty response - response.setContentType("text/json;charset=utf-8"); - PrintWriter out=response.getWriter(); - out.print("{action:\"poll\"}"); - } else { AsyncContext async = request.startAsync();