8238740: java/net/httpclient/whitebox/FlowTestDriver.java would not specify a TLS protocol

Reviewed-by: dfuchs
This commit is contained in:
John Jiang 2020-03-10 21:43:46 +08:00
parent d49eb0d9a7
commit edaf548beb

View File

@ -80,7 +80,6 @@ public class FlowTest extends AbstractRandomTest {
SSLEngine engineClient = ctx.createSSLEngine();
SSLParameters params = ctx.getSupportedSSLParameters();
params.setApplicationProtocols(new String[]{"proto1", "proto2"}); // server will choose proto2
params.setProtocols(new String[]{"TLSv1.2"}); // TODO: This is essential. Needs to be protocol impl
engineClient.setSSLParameters(params);
engineClient.setUseClientMode(true);
completion = new CompletableFuture<>();