end of a bucket
Obtained from: Alla Teper noticed it
Submitted by:
Reviewed by: Cliff/Justin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93532
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.33-dev
+ *) fix bug in mod-include where it wouldn't send a unmatched
+ part if it was at the end of a bucket [Ian Holsman]
+
*) worker MPM: Improve logging of errors with the interface between
the listener thread and worker threads. [Jeff Trawick]
return found_start_sequence(dptr, ctx, c - buf);
}
- /* False alarm... */
+ /* False alarm...
+ * send out the unmatched part
+ */
+ if (ctx->parse_pos > 0) {
+ apr_bucket *tmp_buck;
+ tmp_buck = apr_bucket_pool_create(apr_pstrndup(ctx->pool,
+ ctx->start_seq,
+ ctx->parse_pos),
+ ctx->parse_pos,
+ ctx->pool);
+ APR_BUCKET_INSERT_BEFORE(dptr, tmp_buck);
+ }
ctx->state = PRE_HEAD;
}