Skip to content

Commit

Permalink
With io uring the server exception handler might catch connection res…
Browse files Browse the repository at this point in the history
…et by peer error
  • Loading branch information
vietj committed Oct 18, 2024
1 parent c2414e2 commit f2a2c2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vertx-core/src/test/java/io/vertx/tests/tls/HttpTLSTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit f2a2c2f

Please sign in to comment.