Skip to content

Commit

Permalink
fix: OF-2660 - do not send an opening stream header in directTLS mode
Browse files Browse the repository at this point in the history
By adding a Netty SSL Handler what startTLS set to false, the SSL Handshake is commenced automatically. When TLS has been negotiated, a stream header is sent from the stanza handler.
  • Loading branch information
AlexGidman committed Oct 12, 2023
1 parent 1456385 commit 91b12ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ public boolean exceptionOccurredForDirectTLS(Throwable cause) {
this.channel.closeFuture().addListener(future -> stop());

// Start the session negotiation
sendOpeningStreamHeader(channel);
if (!directTLS) {
sendOpeningStreamHeader(channel);
}

return waitForSession(channel);
} catch (InterruptedException e) {
Expand Down

0 comments on commit 91b12ab

Please sign in to comment.