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:
Greg Wilkins 2010-07-12 08:45:08 +00:00
parent 608eec242e
commit 9afacd6b26
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}