httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r809928 - /httpd/httpd/trunk/modules/filters/mod_buffer.c
Date Tue, 01 Sep 2009 09:30:36 GMT
Author: pquerna
Date: Tue Sep  1 09:30:36 2009
New Revision: 809928

URL: http://svn.apache.org/viewvc?rev=809928&view=rev
Log:
Check return value from ap_pass_brigade incase we are buffering and a client disconnects.

Modified:
    httpd/httpd/trunk/modules/filters/mod_buffer.c

Modified: httpd/httpd/trunk/modules/filters/mod_buffer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_buffer.c?rev=809928&r1=809927&r2=809928&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_buffer.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_buffer.c Tue Sep  1 09:30:36 2009
@@ -140,6 +140,11 @@
 
             /* pass what we have down the chain */
             rv = ap_pass_brigade(f->next, ctx->bb);
+            if (rv) {
+                /* should break out of the loop, since our write to the client 
+                 * failed in some way. */
+                continue;
+            }
         }
 
         /* at this point we are ready to buffer.



Mime
View raw message