Fix netty latest dep test failure (#13649)

This commit is contained in:
Lauri Tulmin 2025-04-04 14:24:26 +03:00 committed by GitHub
parent 78772ea3fa
commit ffa4f5c5e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class Netty41ClientSslTest {
ChannelPipeline pipeline = socketChannel.pipeline();
SslContext sslContext = SslContextBuilder.forClient().build();
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc());
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc(), "localhost", -1);
if (enabledProtocols != null) {
sslEngine.setEnabledProtocols(enabledProtocols.toArray(new String[0]));
}

View File

@ -79,7 +79,7 @@ public class Netty41ClientExtension implements BeforeAllCallback, AfterAllCallba
ChannelPipeline pipeline = socketChannel.pipeline();
if (https) {
SslContext sslContext = SslContextBuilder.forClient().build();
pipeline.addLast(sslContext.newHandler(socketChannel.alloc()));
pipeline.addLast(sslContext.newHandler(socketChannel.alloc(), "localhost", -1));
}
if (readTimeout) {
pipeline.addLast(