This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new d33dc9e7bd Partial revert of 6fd26942
d33dc9e7bd is described below
commit d33dc9e7bd79288c114db58c4f150a37032040a7
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]