This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new f1dca9e463 Partial revert of 6fd26942
f1dca9e463 is described below
commit f1dca9e463adbf54d8ce48d98749f4b5440dc898
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Sep 30 13:13:05 2026 +0100
Partial revert of 6fd26942
Still attempt to close the underlying buffer if there was an earlier
error.
---
java/org/apache/catalina/connector/CoyoteWriter.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/java/org/apache/catalina/connector/CoyoteWriter.java
b/java/org/apache/catalina/connector/CoyoteWriter.java
index 06a41338ed..ca0c80832d 100644
--- a/java/org/apache/catalina/connector/CoyoteWriter.java
+++ b/java/org/apache/catalina/connector/CoyoteWriter.java
@@ -111,10 +111,6 @@ public class CoyoteWriter extends PrintWriter {
@Override
public void close() {
- if (error) {
- return;
- }
-
// We don't close the PrintWriter - super() is not called,
// so the stream can be reused. We close ob.
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]