392237 Fixed 3.0 port of chat servlet - removed old dispatch branch
This commit is contained in:
parent
18f7293efd
commit
5d53c7d960
|
@ -164,13 +164,6 @@ public class ChatServlet extends HttpServlet
|
||||||
response.setContentLength(bytes.length);
|
response.setContentLength(bytes.length);
|
||||||
response.getOutputStream().write(bytes);
|
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
|
else
|
||||||
{
|
{
|
||||||
AsyncContext async = request.startAsync();
|
AsyncContext async = request.startAsync();
|
||||||
|
|
Loading…
Reference in New Issue