This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 8957205ab6 Partial revert of 6fd26942
8957205ab6 is described below

commit 8957205ab69ac4c104cab5c6d6eee290f913574d
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]

Reply via email to