You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2010/11/06 15:10:05 UTC
svn commit: r1032062 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
Author: trawick
Date: Sat Nov 6 14:10:04 2010
New Revision: 1032062
URL: http://svn.apache.org/viewvc?rev=1032062&view=rev
Log:
skip eos (and potentially other non-data buckets) when
collecting buffers to write to the application, eliminating
the surprising {iov_base=NULL, iov_len=0} passed to writev()
Modified:
httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c?rev=1032062&r1=1032061&r2=1032062&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_proc_unix.c Sat Nov 6 14:10:04 2010
@@ -775,9 +775,13 @@ apr_status_t proc_write_ipc(fcgid_ipc *i
for (e = APR_BRIGADE_FIRST(output_brigade);
e != APR_BRIGADE_SENTINEL(output_brigade);
e = APR_BUCKET_NEXT(e)) {
- /* Read bucket */
apr_size_t len;
const char* base;
+
+ if (APR_BUCKET_IS_METADATA(e)) {
+ continue;
+ }
+
if ((rv = apr_bucket_read(e, &base, &len,
APR_BLOCK_READ)) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv, ipc_handle->request,