Skip to content

Commit

Permalink
android-interop-testing: use new channel builder size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-mastrangelo committed Oct 27, 2016
1 parent fdd062c commit d019eea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
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);
ManagedChannelBuilder<?> channelBuilder = ManagedChannelBuilder.forAddress(host, port)
.maxInboundMessageSize(16 * 1024 * 1024);
if (serverHostOverride != null) {
// Force the hostname to match the cert the server uses.
channelBuilder.overrideAuthority(serverHostOverride);
Expand Down

0 comments on commit d019eea

Please sign in to comment.