mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Change ap_get_brigade prototype to remove *readbytes in favor of readbytes.
If you need the length, you should be using apr_brigade_length. This is much more consistent. Of all the places that call ap_get_brigade, only one (ap_http_filter) needs the length. This makes it now possible to pass constants down without assigning them to a temporary variable first. Also: - Change proxy_ftp to use EXHAUSTIVE mode (didn't catch its -1 before) - Fix buglet in mod_ssl that would cause it to return too much data in some circumstances git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93014 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -239,7 +239,6 @@ static void check_pipeline_flush(request_rec *r)
|
||||
### allow us to defer creation of the brigade to when we actually
|
||||
### need to send a FLUSH. */
|
||||
apr_bucket_brigade *bb = apr_brigade_create(r->pool);
|
||||
apr_off_t zero = 0;
|
||||
|
||||
/* Flush the filter contents if:
|
||||
*
|
||||
@@ -250,7 +249,7 @@ static void check_pipeline_flush(request_rec *r)
|
||||
/* ### is zero correct? that means "read one line" */
|
||||
if (!r->connection->keepalive ||
|
||||
ap_get_brigade(r->input_filters, bb, AP_MODE_EATCRLF,
|
||||
APR_NONBLOCK_READ, &zero) != APR_SUCCESS) {
|
||||
APR_NONBLOCK_READ, 0) != APR_SUCCESS) {
|
||||
apr_bucket *e = apr_bucket_flush_create();
|
||||
|
||||
/* We just send directly to the connection based filters. At
|
||||
|
Reference in New Issue
Block a user