mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +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:
@@ -94,7 +94,6 @@ static int process_echo_connection(conn_rec *c)
|
||||
apr_bucket_brigade *bb;
|
||||
apr_bucket *b;
|
||||
apr_status_t rv;
|
||||
apr_off_t zero = 0;
|
||||
EchoConfig *pConfig = ap_get_module_config(c->base_server->module_config,
|
||||
&echo_module);
|
||||
|
||||
@@ -107,7 +106,7 @@ static int process_echo_connection(conn_rec *c)
|
||||
for ( ; ; ) {
|
||||
/* Get a single line of input from the client */
|
||||
if ((rv = ap_get_brigade(c->input_filters, bb, AP_MODE_GETLINE,
|
||||
APR_BLOCK_READ, &zero) != APR_SUCCESS ||
|
||||
APR_BLOCK_READ, 0) != APR_SUCCESS ||
|
||||
APR_BRIGADE_EMPTY(bb))) {
|
||||
apr_brigade_destroy(bb);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user