From: Paul Querna Date: Sat, 11 Dec 2004 09:34:19 +0000 (+0000) Subject: * core_filters.c: If APR_MAX_IOVEC_SIZE is defined, make sure we are under that limit. X-Git-Tag: 2.1.3~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a2c15b82439e1308f41c715c1af5b3725a7a187;p=thirdparty%2Fapache%2Fhttpd.git * core_filters.c: If APR_MAX_IOVEC_SIZE is defined, make sure we are under that limit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111594 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index 9140546f7f3..24330b60aa3 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -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