fixed timeout
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2105 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
608eec242e
commit
9afacd6b26
|
@ -124,10 +124,11 @@ public class ChatServlet extends HttpServlet
|
|||
}
|
||||
else
|
||||
{
|
||||
Continuation continuation = ContinuationSupport.getContinuation(request,response);
|
||||
Continuation continuation = ContinuationSupport.getContinuation(request);
|
||||
if (continuation.isInitial())
|
||||
{
|
||||
// No chat in queue, so suspend and wait for timeout or chat
|
||||
continuation.setTimeout(20000);
|
||||
continuation.suspend();
|
||||
member._continuation=continuation;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue