This is an automated email from the ASF dual-hosted git repository.
markt 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 12f83c4a01 Add change log entry for BZ 69982. Minor clean-up.
12f83c4a01 is described below
commit 12f83c4a01b581a034d8441a8bdb87853af6b671
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Mar 23 12:10:37 2026 +0000
Add change log entry for BZ 69982. Minor clean-up.
---
java/org/apache/tomcat/util/net/NioEndpoint.java | 7 +++++--
webapps/docs/changelog.xml | 6 ++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java
b/java/org/apache/tomcat/util/net/NioEndpoint.java
index fcb4e1cbdd..1b849266cf 100644
--- a/java/org/apache/tomcat/util/net/NioEndpoint.java
+++ b/java/org/apache/tomcat/util/net/NioEndpoint.java
@@ -1428,26 +1428,29 @@ public class NioEndpoint extends
AbstractJsseEndpoint<NioChannel,SocketChannel>
return !socketBufferHandler.isWriteBufferEmpty() ||
getSocket().getOutboundRemaining() > 0;
}
+
/*
* https://bz.apache.org/bugzilla/show_bug.cgi?id=69982
*
- * Similar to socketOrNetworkBufferHasDataLeft(), check the additional
buffer for TLS
+ * Similar to socketOrNetworkBufferHasDataLeft(), check the additional
buffer for TLS.
*/
@Override
public boolean hasDataToWrite() {
return super.hasDataToWrite() ||
getSocket().getOutboundRemaining() > 0;
}
+
/*
* https://bz.apache.org/bugzilla/show_bug.cgi?id=69982
*
- * Similar to socketOrNetworkBufferHasDataLeft(), check the additional
buffer for TLS
+ * Similar to socketOrNetworkBufferHasDataLeft(), check the additional
buffer for TLS.
*/
@Override
public boolean canWrite() {
return super.canWrite() && getSocket().getOutboundRemaining() == 0;
}
+
@Override
protected void doWrite(boolean block, ByteBuffer buffer) throws
IOException {
int n;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f09df0311d..ec996efd8e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -116,6 +116,12 @@
being closed without a <code>GOAWAY</code> frame if an invalid
<code>HEADERS</code> frame was received. (markt)
</fix>
+ <fix>
+ <bug>69982</bug>: Fix a bug in the non-blocking flushing code for
+ NIO+TLS that meant that a response may not be fully written until the
+ connection is closed. Pull request <pr>966</pr> provided by Phil Clay.
+ (markt)
+ </fix>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]