mirror of https://github.com/grpc/grpc-java.git
OkHttp should use plaintext in TransportBenchmark
Otherwise, OkHttp fails because it is connecting to a plaintext server.
This commit is contained in:
parent
d1e15ab859
commit
2f799ed465
|
|
@ -120,7 +120,8 @@ public class TransportBenchmark {
|
|||
int port = pickUnusedPort();
|
||||
InetSocketAddress address = new InetSocketAddress("localhost", port);
|
||||
serverBuilder = NettyServerBuilder.forAddress(address);
|
||||
channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port);
|
||||
channelBuilder = OkHttpChannelBuilder.forAddress("localhost", port)
|
||||
.negotiationType(io.grpc.transport.okhttp.NegotiationType.PLAINTEXT);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue