diff src/org/eclipse/jetty/server/AsyncHttpConnection.java @ 965:866f2e801618

handle() returns void
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 14 Oct 2016 02:19:21 -0600
parents 4b6216fa9cec
children 5ee36654b383
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AsyncHttpConnection.java	Fri Oct 14 01:03:47 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncHttpConnection.java	Fri Oct 14 02:19:21 2016 -0600
@@ -52,9 +52,8 @@
 	}
 
 	@Override
-	public Connection handle() throws IOException
+	public void handle() throws IOException
 	{
-		Connection connection = this;
 		boolean some_progress = false;
 		boolean progress = true;
 
@@ -63,7 +62,7 @@
 			setCurrentConnection(this);
 
 			// While progress and the connection has not changed
-			while (progress && connection==this)
+			while (progress)
 			{
 				progress=false;
 				try
@@ -109,14 +108,6 @@
 							// Reset the parser/generator
 							progress=true;
 
-							// look for a switched connection instance?
-							if (_response.getStatus()==HttpStatus.SWITCHING_PROTOCOLS_101)
-							{
-								Connection switched=(Connection)_request.getAttribute("org.eclipse.jetty.io.Connection");
-								if (switched!=null)
-									connection=switched;
-							}
-
 							reset();
 
 							// TODO Is this still required?
@@ -162,7 +153,6 @@
 				}
 			}
 		}
-		return connection;
 	}
 
 	public void onInputShutdown() throws IOException