Skip to content

Commit

Permalink
Merge pull request #1435 from rmartinc/UNDERTOW-2234
Browse files Browse the repository at this point in the history
[UNDERTOW-2234] HttpClientSNITestCase fails with last jdk 11.0.18 and 17.0.6
  • Loading branch information
ropalka committed Jan 26, 2023
2 parents 98bef0d + 3be85c1 commit fcc0b74
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void testSNIWhenHostname() throws Exception {

// connect using the hostname, SNI expected
final ClientConnection connection = client.connect(new URI("https://" + address.getHostName() + ":" + ADDRESS.getPort()), worker,
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.getClientSSLContext()),
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.createClientSslContext()),
DefaultServer.getBufferPool(), OptionMap.EMPTY).get();
try {
connection.getIoThread().execute(() -> {
Expand Down Expand Up @@ -182,7 +182,7 @@ public void testNoSNIWhenIP() throws Exception {

// connect using the IP, no SNI expected
final ClientConnection connection = client.connect(new URI("https://" + hostname + ":" + ADDRESS.getPort()), worker,
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.getClientSSLContext()),
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.createClientSslContext()),
DefaultServer.getBufferPool(), OptionMap.EMPTY).get();
try {
connection.getIoThread().execute(() -> {
Expand Down Expand Up @@ -213,7 +213,7 @@ public void testForcingSNIForIP() throws Exception {

// connect using IP but adding hostname via option, SNI expected to the forced one
final ClientConnection connection = client.connect(new URI("https://" + hostname + ":" + ADDRESS.getPort()), worker,
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.getClientSSLContext()),
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.createClientSslContext()),
DefaultServer.getBufferPool(), OptionMap.create(UndertowOptions.SSL_SNI_HOSTNAME, address.getHostName())).get();
try {
connection.getIoThread().execute(() -> {
Expand Down Expand Up @@ -243,7 +243,7 @@ public void testForcingSNIForHostname() throws Exception {

// connect using hostname but add option to another hostname, SNI expected to the forced one
final ClientConnection connection = client.connect(new URI("https://" + address.getHostName() + ":" + ADDRESS.getPort()), worker,
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.getClientSSLContext()),
new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.createClientSslContext()),
DefaultServer.getBufferPool(), OptionMap.create(UndertowOptions.SSL_SNI_HOSTNAME, "server")).get();
try {
connection.getIoThread().execute(() -> {
Expand Down

0 comments on commit fcc0b74

Please sign in to comment.