Author: remm Date: Thu Mar 9 12:54:49 2017 New Revision: 1786158 URL: http://svn.apache.org/viewvc?rev=1786158&view=rev Log: Oops, fix test build.
Modified: tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java Modified: tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java?rev=1786158&r1=1786157&r2=1786158&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java (original) +++ tomcat/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java Thu Mar 9 12:54:49 2017 @@ -50,6 +50,7 @@ import org.apache.tomcat.util.net.Abstra import org.apache.tomcat.util.net.SSLSupport; import org.apache.tomcat.util.net.SocketEvent; import org.apache.tomcat.util.net.SocketWrapperBase; +import org.apache.tomcat.util.net.SocketWrapperBase.BlockingMode; import org.apache.tomcat.util.net.SocketWrapperBase.CompletionState; public class TestUpgradeInternalHandler extends TomcatBaseTest { @@ -193,7 +194,7 @@ public class TestUpgradeInternalHandler // Note: the completion check used will not call the completion handler if the IO completed inline and without error. // Using a completion check that always calls complete would be easier here since the action is the same even with inline completion. final ByteBuffer buffer = ByteBuffer.allocate(1024); - CompletionState state = wrapper.read(false, 10, TimeUnit.SECONDS, null, SocketWrapperBase.READ_DATA, new CompletionHandler<Long, Void>() { + CompletionState state = wrapper.read(BlockingMode.NON_BLOCK, 10, TimeUnit.SECONDS, null, SocketWrapperBase.READ_DATA, new CompletionHandler<Long, Void>() { @Override public void completed(Long result, Void attachment) { System.out.println("Read: " + result.longValue()); @@ -212,7 +213,7 @@ public class TestUpgradeInternalHandler private void write(ByteBuffer buffer) { buffer.flip(); - CompletionState state = wrapper.write(true, 10, TimeUnit.SECONDS, null, SocketWrapperBase.COMPLETE_WRITE, new CompletionHandler<Long, Void>() { + CompletionState state = wrapper.write(BlockingMode.BLOCK, 10, TimeUnit.SECONDS, null, SocketWrapperBase.COMPLETE_WRITE, new CompletionHandler<Long, Void>() { @Override public void completed(Long result, Void attachment) { System.out.println("Write: " + result.longValue()); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org