changeset 926:88b20b775fa2

remove AsyncContinuation.scheduleTimeout()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 18:31:53 -0600
parents 720a98fb0253
children 1c1c350fbe4b
files src/org/eclipse/jetty/server/AsyncContinuation.java
diffstat 1 files changed, 0 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:29:29 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:31:53 2016 -0600
@@ -473,44 +473,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	protected void scheduleTimeout()
-	{
-		EndPoint endp=_connection.getEndPoint();
-		if (_timeoutMs>0)
-		{
-			if (endp.isBlocking())
-			{
-				synchronized(this)
-				{
-					_expireAt = System.currentTimeMillis()+_timeoutMs;
-					long wait=_timeoutMs;
-					while (_expireAt>0 && wait>0 && _connection.getServer().isRunning())
-					{
-						try
-						{
-							this.wait(wait);
-						}
-						catch (InterruptedException e)
-						{
-							LOG.trace("",e);
-						}
-						wait=_expireAt-System.currentTimeMillis();
-					}
-
-					if (_expireAt>0 && wait<=0 && _connection.getServer().isRunning())
-					{
-						expired();
-					}
-				}            
-			}
-			else
-			{
-				((AsyncEndPoint)endp).scheduleTimeout(_event._timeout,_timeoutMs);
-			}
-		}
-	}
-
-	/* ------------------------------------------------------------ */
 	protected void cancelTimeout()
 	{
 		EndPoint endp=_connection.getEndPoint();