392237 Fixed 3.0 port of chat servlet - removed old dispatch branch

This commit is contained in:
Greg Wilkins 2012-10-25 22:10:22 +11:00
parent 18f7293efd
commit 5d53c7d960
1 changed files with 0 additions and 7 deletions

View File

@ -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();