We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf53a0e commit 659c4b1Copy full SHA for 659c4b1
1 file changed
benchmarks/src/main/java/io/grpc/benchmarks/qps/Utils.java
@@ -134,6 +134,8 @@ static Channel newClientChannel(ClientConfiguration config) throws IOException {
134
OkHttpChannelBuilder builder = OkHttpChannelBuilder
135
.forAddress(addr.getHostName(), addr.getPort())
136
.executor(config.directExecutor ? MoreExecutors.newDirectExecutorService() : null);
137
+ builder.negotiationType(config.tls ? io.grpc.transport.okhttp.NegotiationType.TLS
138
+ : io.grpc.transport.okhttp.NegotiationType.PLAINTEXT);
139
if (config.tls) {
140
SSLSocketFactory factory;
141
if (config.testca) {
0 commit comments