]> granicus.if.org Git - apache/commitdiff
ap_finalize_sub_req_protocol() shouldn't send an EOS bucket if
authorJeff Trawick <trawick@apache.org>
Mon, 10 Jun 2002 18:51:38 +0000 (18:51 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 10 Jun 2002 18:51:38 +0000 (18:51 +0000)
one was already sent.

mod_ext_filter performs some one-time processing when it sees EOS.
When it saw EOS more than once and a subsequent attempt to close a
file failed, it issued the log message described in PR 9644.

PR:      9644

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95595 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/protocol.c

diff --git a/CHANGES b/CHANGES
index d88a4d198d9f87c75fc2627c3a8b35bb786a254e..41a2c69cdf87f3b344806091e37cc102516da801 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.37
 
+  *) ap_finalize_sub_req_protocol() shouldn't send an EOS bucket if
+     one was already sent.  PR 9644  [Jeff Trawick]
+
   *) Fix the display of the default name for the mime types config
      file.  PR 9729  [Matthew Brecknell <mbrecknell@orchestream.com>]
 
index dbe602015830fc1c813e8bc82795e3b268ac0df5..cfc03cd6ea833552321bb5421ad076fc21a95361 100644 (file)
@@ -1033,7 +1033,10 @@ static void end_output_stream(request_rec *r)
 
 void ap_finalize_sub_req_protocol(request_rec *sub)
 {
-    end_output_stream(sub);
+    /* tell the filter chain there is no more content coming */
+    if (!sub->eos_sent) {
+        end_output_stream(sub);
+    }
 }
 
 /* finalize_request_protocol is called at completion of sending the