diff options
author | Paul Querna <pquerna@apache.org> | 2004-12-11 10:34:19 +0100 |
---|---|---|
committer | Paul Querna <pquerna@apache.org> | 2004-12-11 10:34:19 +0100 |
commit | 8a2c15b82439e1308f41c715c1af5b3725a7a187 (patch) | |
tree | 341805567a821c9f45f6c5e89a3e7c1ad4748864 | |
parent | build all. (diff) | |
download | apache2-8a2c15b82439e1308f41c715c1af5b3725a7a187.tar.xz apache2-8a2c15b82439e1308f41c715c1af5b3725a7a187.zip |
* 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
-rw-r--r-- | server/core_filters.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/core_filters.c b/server/core_filters.c index 9140546f7f..24330b60aa 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 |