From c829ee32101510c33c39d9f192027ad9587c6337 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Wed, 23 May 2018 07:41:20 +1000 Subject: [PATCH] Issue #2424 - ReadPendingException in testHttpWriteIdleTimeout() Replacing setBlockingTimeout with setIdleTimeout to fix the ReadPendingException on ServerConnectorTimeoutTest.testHttpWriteIdleTimeout(). Signed-off-by: Lachlan Roberts --- .../org/eclipse/jetty/server/ServerConnectorTimeoutTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/ServerConnectorTimeoutTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/ServerConnectorTimeoutTest.java index 43fbd510c6f..8e101f64beb 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/ServerConnectorTimeoutTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/ServerConnectorTimeoutTest.java @@ -37,6 +37,7 @@ import org.eclipse.jetty.server.session.SessionHandler; import org.eclipse.jetty.toolchain.test.AdvancedRunner; import org.eclipse.jetty.util.IO; import org.eclipse.jetty.util.log.StacklessLogging; +import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Before; @@ -134,7 +135,7 @@ public class ServerConnectorTimeoutTest extends ConnectorTimeoutTest @Test public void testHttpWriteIdleTimeout() throws Exception { - _httpConfiguration.setBlockingTimeout(500); + _httpConfiguration.setIdleTimeout(500); configureServer(new AbstractHandler.ErrorDispatchHandler() { @Override