292326 Stop continuations if server is stopped

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1903 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-05-27 14:05:08 +00:00
parent a7fe344e21
commit 83fb15ef8c
3 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,5 @@
jetty-7.1.4-SNAPSHOT
+ 292326 Stop continuations if server is stopped.
+ 302350 org.eclipse.jetty.server.NCSARequestLog is missing JavaDoc
+ 314581 Implement the Sec-Websocket handshake

View File

@ -552,7 +552,7 @@ public class AsyncContinuation implements AsyncContext, Continuation
{
_expireAt = System.currentTimeMillis()+_timeoutMs;
long wait=_timeoutMs;
while (_expireAt>0 && wait>0)
while (_expireAt>0 && wait>0 && _connection.getServer().isRunning())
{
try
{
@ -565,7 +565,7 @@ public class AsyncContinuation implements AsyncContext, Continuation
wait=_expireAt-System.currentTimeMillis();
}
if (_expireAt>0 && wait<=0)
if (_expireAt>0 && wait<=0 && _connection.getServer().isRunning())
{
expired();
}

View File

@ -189,7 +189,13 @@ public class HttpConnection implements Connection
{
return _requests;
}
/* ------------------------------------------------------------ */
public Server getServer()
{
return _server;
}
/* ------------------------------------------------------------ */
/**
* @return The time this connection was established.