Skip to content

Commit ac9db3b

Browse files
committed
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.
1 parent 867c76d commit ac9db3b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ protected ChannelImpl createChannel() {
250250
}
251251
}
252252
return NettyChannelBuilder.forAddress(new InetSocketAddress(address, serverPort))
253+
.flowControlWindow(65 * 1024)
253254
.negotiationType(useTls ? NegotiationType.TLS : NegotiationType.PLAINTEXT)
254255
.sslContext(sslContext)
255256
.build();

interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyLocalChannelTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static void startServer() {
5656
startStaticServer(
5757
NettyServerBuilder
5858
.forAddress(new LocalAddress("in-process-1"))
59+
.flowControlWindow(65 * 1024)
5960
.channelType(LocalServerChannel.class));
6061
}
6162

interop-testing/src/test/java/io/grpc/testing/integration/Http2NettyTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class Http2NettyTest extends AbstractTransportTest {
5757
public static void startServer() {
5858
try {
5959
startStaticServer(NettyServerBuilder.forPort(serverPort)
60+
.flowControlWindow(65 * 1024)
6061
.sslContext(GrpcSslContexts
6162
.forServer(TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key"))
6263
.ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE)

0 commit comments

Comments
 (0)