]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* core_filters.c: If APR_MAX_IOVEC_SIZE is defined, make sure we are under that limit.
authorPaul Querna <pquerna@apache.org>
Sat, 11 Dec 2004 09:34:19 +0000 (09:34 +0000)
committerPaul Querna <pquerna@apache.org>
Sat, 11 Dec 2004 09:34:19 +0000 (09:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111594 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 9140546f7f3081b675c3ff27b389c938211665b9..24330b60aa381b1df5df5535b7a38d541c7d1175 100644 (file)
@@ -528,7 +528,15 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd,
     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