Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
This commit is contained in:
commit
48131f1fab
|
@ -78,7 +78,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
handlerLatch.countDown();
|
||||
}
|
||||
});
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
setServerIdleTimeout(idleTimeout);
|
||||
|
||||
CountDownLatch resultLatch = new CountDownLatch(1);
|
||||
|
@ -102,7 +102,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
httpConfig.setBlockingTimeout(-1);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
start(new BlockingReadHandler(handlerLatch));
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
setServerIdleTimeout(idleTimeout);
|
||||
|
||||
try (StacklessLogging stackless = new StacklessLogging(HttpChannel.class))
|
||||
|
@ -158,7 +158,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
@Test
|
||||
public void testBlockingTimeoutLargerThanIdleTimeoutBlockingReadIdleTimeoutFires() throws Exception
|
||||
{
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
long blockingTimeout = 3 * idleTimeout;
|
||||
httpConfig.setBlockingTimeout(blockingTimeout);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
|
@ -191,7 +191,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
httpConfig.setBlockingTimeout(-1);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
start(new BlockingWriteHandler(handlerLatch));
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
setServerIdleTimeout(idleTimeout);
|
||||
|
||||
try (StacklessLogging stackless = new StacklessLogging(HttpChannel.class))
|
||||
|
@ -267,7 +267,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
@Test
|
||||
public void testBlockingTimeoutLargerThanIdleTimeoutBlockingWriteIdleTimeoutFires() throws Exception
|
||||
{
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
long blockingTimeout = 3 * idleTimeout;
|
||||
httpConfig.setBlockingTimeout(blockingTimeout);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
|
@ -307,7 +307,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
@Test
|
||||
public void testBlockingTimeoutWithSlowRead() throws Exception
|
||||
{
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
long blockingTimeout = 2 * idleTimeout;
|
||||
httpConfig.setBlockingTimeout(blockingTimeout);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
|
@ -406,7 +406,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
});
|
||||
}
|
||||
});
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
setServerIdleTimeout(idleTimeout);
|
||||
|
||||
DeferredContentProvider contentProvider = new DeferredContentProvider(ByteBuffer.allocate(1));
|
||||
|
@ -459,7 +459,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
});
|
||||
}
|
||||
});
|
||||
long idleTimeout = 1000;
|
||||
long idleTimeout = 2500;
|
||||
setServerIdleTimeout(idleTimeout);
|
||||
|
||||
BlockingQueue<Callback> callbacks = new LinkedBlockingQueue<>();
|
||||
|
@ -589,7 +589,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
@Test
|
||||
public void testBlockingReadHttpIdleTimeoutOverridesIdleTimeout() throws Exception
|
||||
{
|
||||
long httpIdleTimeout = 1000;
|
||||
long httpIdleTimeout = 2500;
|
||||
long idleTimeout = 3 * httpIdleTimeout;
|
||||
httpConfig.setIdleTimeout(httpIdleTimeout);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
|
@ -619,7 +619,7 @@ public class ServerTimeoutsTest extends AbstractTest
|
|||
@Test
|
||||
public void testAsyncReadHttpIdleTimeoutOverridesIdleTimeout() throws Exception
|
||||
{
|
||||
long httpIdleTimeout = 1000;
|
||||
long httpIdleTimeout = 2500;
|
||||
long idleTimeout = 3 * httpIdleTimeout;
|
||||
httpConfig.setIdleTimeout(httpIdleTimeout);
|
||||
CountDownLatch handlerLatch = new CountDownLatch(1);
|
||||
|
|
Loading…
Reference in New Issue