H3: disable using an IP(v4 or v6) address as the hostname as BoringSSL requires a SAN dns attribute for the IP addresses that keytool refuses to create

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2023-06-05 17:52:47 +02:00
parent ea7369b769
commit 15d67bdf57
2 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,6 @@ import org.eclipse.jetty.util.NanoTime;
import org.eclipse.jetty.util.thread.Scheduler;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.slf4j.Logger;
@ -181,7 +180,11 @@ public class HttpClientLoadTest extends AbstractTest
{
ThreadLocalRandom random = ThreadLocalRandom.current();
// Choose a random destination
String host = random.nextBoolean() ? "localhost" : "127.0.0.1";
String host;
if (transport == Transport.H3)
host = "localhost";
else
host = random.nextBoolean() ? "localhost" : "127.0.0.1";
// Choose a random method
HttpMethod method = random.nextBoolean() ? HttpMethod.GET : HttpMethod.POST;

View File

@ -673,6 +673,7 @@ public class HttpClientTest extends AbstractTest
{
assumeTrue(Net.isIpv6InterfaceAvailable());
assumeTrue(transport != Transport.UNIX_DOMAIN);
assumeTrue(transport != Transport.H3);
start(transport, new Handler.Abstract()
{