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:
parent
a7fe344e21
commit
83fb15ef8c
|
@ -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
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -189,7 +189,13 @@ public class HttpConnection implements Connection
|
|||
{
|
||||
return _requests;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
public Server getServer()
|
||||
{
|
||||
return _server;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @return The time this connection was established.
|
||||
|
|
Loading…
Reference in New Issue