httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r111594 - /httpd/httpd/trunk/server/core_filters.c
Date Sat, 11 Dec 2004 09:34:20 GMT
Author: pquerna
Date: Sat Dec 11 01:34:19 2004
New Revision: 111594

URL: http://svn.apache.org/viewcvs?view=rev&rev=111594
Log:
* core_filters.c: If APR_MAX_IOVEC_SIZE is defined, make sure we are under that limit.

Modified:
   httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/core_filters.c?view=diff&rev=111594&p1=httpd/httpd/trunk/server/core_filters.c&r1=111593&p2=httpd/httpd/trunk/server/core_filters.c&r2=111594
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c	(original)
+++ httpd/httpd/trunk/server/core_filters.c	Sat Dec 11 01:34:19 2004
@@ -528,7 +528,15 @@
     return rv;
 }
 
+#ifndef APR_MAX_IOVEC_SIZE 
 #define MAX_IOVEC_TO_WRITE 16
+#else
+#if APR_MAX_IOVEC_SIZE > 16
+#define MAX_IOVEC_TO_WRITE 16
+#else
+#define MAX_IOVEC_TO_WRITE APR_MAX_IOVEC_SIZE
+#endif
+#endif
 
 /* Optional function coming from mod_logio, used for logging of output
  * traffic

Mime
View raw message