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

handle() returns void
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 14 Oct 2016 02:19:21 -0600
parents fe461f7cfc8e
children 5ee36654b383
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/BlockingHttpConnection.java	Fri Oct 14 01:03:47 2016 -0600
+++ b/src/org/eclipse/jetty/server/BlockingHttpConnection.java	Fri Oct 14 02:19:21 2016 -0600
@@ -53,17 +53,16 @@
 		super.handleRequest();
 	}
 
-	public Connection handle() throws IOException
+	@Override
+	public void handle() throws IOException
 	{
-		Connection connection = this;
-
 		try
 		{
 			setCurrentConnection(this);
 
 			// do while the endpoint is open
 			// AND the connection has not changed
-			while (_endp.isOpen() && connection==this)
+			while (_endp.isOpen())
 			{
 				try
 				{
@@ -101,14 +100,6 @@
 						// Reset the parser/generator
 						reset();
 
-						// 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;
-						}
-
 						// TODO Is this required?
 						if (!_generator.isPersistent() && !_endp.isOutputShutdown())
 						{
@@ -125,8 +116,6 @@
 					}
 				}
 			}
-
-			return connection;
 		}
 		finally
 		{