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
|
else
|
||||||
{
|
{
|
||||||
Continuation continuation = ContinuationSupport.getContinuation(request,response);
|
Continuation continuation = ContinuationSupport.getContinuation(request);
|
||||||
if (continuation.isInitial())
|
if (continuation.isInitial())
|
||||||
{
|
{
|
||||||
// No chat in queue, so suspend and wait for timeout or chat
|
// No chat in queue, so suspend and wait for timeout or chat
|
||||||
|
continuation.setTimeout(20000);
|
||||||
continuation.suspend();
|
continuation.suspend();
|
||||||
member._continuation=continuation;
|
member._continuation=continuation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue