Skip to content

Commit

Permalink
Start handshake timeout only if the timeout is > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Dec 7, 2022
1 parent e9a49bc commit 71b94e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/vertx/core/net/impl/VertxSniHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public VertxSniHandler(Mapping<? super String, ? extends SslContext> mapping, lo

@Override
public void handlerAdded(ChannelHandlerContext ctx) throws Exception {
if (handshakeTimeoutMillis >= 0) {
if (handshakeTimeoutMillis > 0) {
// We assume to always be added in an active channel
assert(ctx.channel().isActive());
timeoutFuture = ctx.executor().schedule(() -> {
Expand Down

0 comments on commit 71b94e8

Please sign in to comment.