This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 02166d1c7c Fix possible TLS connections failures
02166d1c7c is described below
commit 02166d1c7c32973685734ef132e56eb232605cc5
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Sep 17 23:22:53 2026 +0100
Fix possible TLS connections failures
Caused by one of the flags Tomcat uses to track TLS handshake progress
not being correctly reset.
---
java/org/apache/tomcat/util/net/SecureNioChannel.java | 3 +++
webapps/docs/changelog.xml | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/java/org/apache/tomcat/util/net/SecureNioChannel.java
b/java/org/apache/tomcat/util/net/SecureNioChannel.java
index c8af26b187..9480333f3b 100644
--- a/java/org/apache/tomcat/util/net/SecureNioChannel.java
+++ b/java/org/apache/tomcat/util/net/SecureNioChannel.java
@@ -113,6 +113,7 @@ public class SecureNioChannel extends NioChannel {
if (channel != null) {
sniComplete = false;
handshakeComplete = false;
+ needHandshakeWrap = false;
closed = false;
closing = false;
netInBuffer.clear();
@@ -919,6 +920,8 @@ public class SecureNioChannel extends NioChannel {
netOutBuffer.clear();
SSLEngineResult result = sslEngine.wrap(srcs, offset, length,
netOutBuffer);
+ // Call to wrap() will have included any required handshake data
+ needHandshakeWrap = false;
// The number of bytes written
int written = result.bytesConsumed();
netOutBuffer.flip();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index ac51ae2889..d6aea358f0 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -211,6 +211,10 @@
<fix>
Correct a narrow race condition when processing HTTP/2 headers. (markt)
</fix>
+ <fix>
+ Fix possible TLS connections failures caused by one of the flags Tomcat
+ uses to track TLS handshake progress not being correctly reset. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]