diff src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java @ 1004:3fa54d9d19cd

better handling of BindException
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 22 Oct 2016 23:00:57 -0600
parents 39154cfa58e4
children 0e96ce3db20a
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Sat Oct 22 22:24:47 2016 -0600
+++ b/src/org/eclipse/jetty/server/nio/BlockingChannelConnector.java	Sat Oct 22 23:00:57 2016 -0600
@@ -198,12 +198,16 @@
 			{
 				_timeout = getMaxIdleTime();
 				_endpoints.add(this);
-
+/*
 				while (isOpen())
 				{
 					_idleTimestamp = System.currentTimeMillis();
 					_connection.handle();
 				}
+*/
+				_idleTimestamp = System.currentTimeMillis();
+				_connection.handle();
+				if( isOpen() )  throw new RuntimeException();
 			}
 			catch (EofException e)
 			{