]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: don't break out iovec coalescing for metadata in ap_core_output_filter().
authorYann Ylavic <ylavic@apache.org>
Thu, 19 Aug 2021 13:43:23 +0000 (13:43 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 19 Aug 2021 13:43:23 +0000 (13:43 +0000)
* server/core_filters.c (send_brigade_nonblocking):
  Keep filling in the iovec when the next bucket has no ->length.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892450 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 7c3fa96fef27905cf66381d0c7a0813b46c13190..0325dea452d51d22f234a96d2ce355ab4c101d2a 100644 (file)
@@ -604,7 +604,7 @@ static apr_status_t send_brigade_nonblocking(apr_socket_t *s,
          */
         if (nbytes > sconf->flush_max_threshold
                 && next != APR_BRIGADE_SENTINEL(bb)
-                && !is_in_memory_bucket(next)) {
+                && next->length && !is_in_memory_bucket(next)) {
             (void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 1);
             rv = writev_nonblocking(s, bb, ctx, nbytes, nvec, c);
             if (rv != APR_SUCCESS) {