From f2a2c2f9f6d240b8c91c497423b867dde7f92a0f Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Fri, 18 Oct 2024 15:29:59 +0200 Subject: [PATCH] With io uring the server exception handler might catch connection reset by peer error --- vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java b/vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java index 2c2de7b629a..2044bcf0aef 100755 --- a/vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java +++ b/vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java @@ -41,6 +41,7 @@ import io.vertx.core.net.*; import io.vertx.core.net.impl.KeyStoreHelper; import io.vertx.core.transport.Transport; +import io.vertx.test.core.Repeat; import io.vertx.test.http.HttpTestBase; import org.junit.Assume; import org.junit.Ignore; @@ -1285,9 +1286,7 @@ TLSTest run(boolean shouldPass) { server.connectionHandler(conn -> complete()); AtomicInteger count = new AtomicInteger(); server.exceptionHandler(err -> { - if (shouldPass) { - HttpTLSTest.this.fail(err); - } else { + if (!shouldPass) { if (count.incrementAndGet() == 1) { complete(); }