android-interop-testing: use new channel builder size limit

This commit is contained in:
Carl Mastrangelo 2016-10-27 14:37:02 -07:00
parent fdd062c465
commit d019eead63
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ import javax.security.auth.x500.X500Principal;
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);