Reduce flow control window for interop tests

Many of the interop tests were designed with the default 64 KB flow
control window in mind. If we test with 1 MB then it defeats the flow
control testing.

65 KB is an arbitrary number, but I chose it to be rather small, but
still not the HTTP/2-default 64 KB because implementations have had
trouble with applying flow control changes correctly.
This commit is contained in:
Eric Anderson 2015-07-14 12:41:19 -07:00
parent 867c76d185
commit ac9db3b157
3 changed files with 3 additions and 0 deletions

View File

@ -250,6 +250,7 @@ public class TestServiceClient {
}
}
return NettyChannelBuilder.forAddress(new InetSocketAddress(address, serverPort))
.flowControlWindow(65 * 1024)
.negotiationType(useTls ? NegotiationType.TLS : NegotiationType.PLAINTEXT)
.sslContext(sslContext)
.build();

View File

@ -56,6 +56,7 @@ public class Http2NettyLocalChannelTest extends AbstractTransportTest {
startStaticServer(
NettyServerBuilder
.forAddress(new LocalAddress("in-process-1"))
.flowControlWindow(65 * 1024)
.channelType(LocalServerChannel.class));
}

View File

@ -57,6 +57,7 @@ public class Http2NettyTest extends AbstractTransportTest {
public static void startServer() {
try {
startStaticServer(NettyServerBuilder.forPort(serverPort)
.flowControlWindow(65 * 1024)
.sslContext(GrpcSslContexts
.forServer(TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key"))
.ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE)