You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2009/09/01 11:30:36 UTC
svn commit: r809928 - /httpd/httpd/trunk/modules/filters/mod_buffer.c
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.