Commit 4de9ca1a authored by Paul Querna's avatar Paul Querna
Browse files

* 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
parent 5c231406
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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