diff src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 956:1094975d013b

remove setCheckForIdle()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 13 Oct 2016 18:11:01 -0600
parents 6f49b8dfffe6
children 7b94f5b33c64
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Thu Oct 13 16:55:53 2016 -0600
+++ b/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java	Thu Oct 13 18:11:01 2016 -0600
@@ -80,8 +80,6 @@
 
 	/** true if {@link SelectSet#destroyEndPoint(SelectChannelEndPoint)} has not been called */
 	private boolean _open;
-
-	private volatile boolean _checkIdle;
 	
 	private boolean _ishut;
 
@@ -95,8 +93,6 @@
 		_state = STATE_UNDISPATCHED;
 		_open = true;
 		_key = key;
-
-		setCheckForIdle(true);
 	}
 
 	@Override
@@ -194,17 +190,6 @@
 	}
 
 	@Override
-	public void setCheckForIdle(boolean check)
-	{
-		if (check)
-		{
-			_checkIdle = true;
-		}
-		else
-			_checkIdle = false;
-	}
-
-	@Override
 	public int fill(Buffer buffer) throws IOException
 	{
 		int fill=super.fill(buffer);
@@ -270,8 +255,6 @@
 
 			long now = _selectSet.getNow();
 			long end = now+timeoutMs;
-			boolean check = _checkIdle;
-			setCheckForIdle(true);
 			try
 			{
 				_readBlocked = true;
@@ -298,7 +281,6 @@
 			finally
 			{
 				_readBlocked = false;
-				setCheckForIdle(check);
 			}
 		}
 		return true;
@@ -318,8 +300,6 @@
 
 			long now=_selectSet.getNow();
 			long end=now+timeoutMs;
-			boolean check = _checkIdle;
-			setCheckForIdle(true);
 			try
 			{
 				_writeBlocked = true;
@@ -345,7 +325,6 @@
 			finally
 			{
 				_writeBlocked = false;
-				setCheckForIdle(check);
 			}
 		}
 		return true;