Skip to content

Commit

Permalink
interop: Bump maxMessageSize for Android testing
Browse files Browse the repository at this point in the history
This was missed in 16b096b
  • Loading branch information
ejona86 committed Jul 11, 2016
1 parent bfcb04c commit 0a98ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class TesterOkHttpChannelBuilder {
public static ManagedChannel build(String host, int port, @Nullable String serverHostOverride,
boolean useTls, @Nullable InputStream testCa, @Nullable String androidSocketFactoryTls) {
ManagedChannelBuilder<?> channelBuilder = ManagedChannelBuilder.forAddress(host, port);
((OkHttpChannelBuilder) channelBuilder).maxMessageSize(16 * 1024 * 1024);
if (serverHostOverride != null) {
// Force the hostname to match the cert the server uses.
channelBuilder.overrideAuthority(serverHostOverride);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void start() throws Exception {
}
server = NettyServerBuilder.forPort(port)
.sslContext(sslContext)
.maxMessageSize(16 * 1024 * 1024)
.addService(ServerInterceptors.intercept(
new TestServiceImpl(executor),
TestUtils.echoRequestHeadersInterceptor(Util.METADATA_KEY)))
Expand Down

0 comments on commit 0a98ff0

Please sign in to comment.