RFR: 8338380: Update TLSCommon/interop/AbstractServer to specify an interface to listen for connections
Rajan Halade
rhalade at openjdk.org
Wed Aug 21 17:38:03 UTC 2024
On Wed, 14 Aug 2024 12:22:47 GMT, Matthew Donovan <mdonovan at openjdk.org> wrote:
> This is a small PR to extend the AbstractServer class in test/jdk/javax/net/ssl/TLSCommon/interop/ to enable users to specify a specific interface on which to listen for incoming connections. The default interface is now the loopback interface. The derived class, JdkServer, is also updated to use the interface specified in AbstractServer.
test/jdk/javax/net/ssl/TLSCommon/interop/JdkServer.java line 58:
> 56: serverSocket
> 57: = (SSLServerSocket) serverFactory.createServerSocket(builder.getPort(),
> 58: 5, builder.getListenInterface());
Please update `backlog` parameter to `0` so the default value is used.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20581#discussion_r1725471234
More information about the security-dev
mailing list