mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 16:11:32 +00:00
[mod_proxy_]http: follow up to r1750392.
Export [ap_]check_pipeline() and use it also for ap_proxy_check_connection(), so that all the necessary checks on the connection are done before reusing it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -350,6 +350,21 @@ void ap_process_async_request(request_rec *r);
|
||||
*/
|
||||
AP_DECLARE(void) ap_die(int type, request_rec *r);
|
||||
|
||||
/**
|
||||
* Check whether a connection is still established and has data available,
|
||||
* optionnaly consuming blank lines ([CR]LF).
|
||||
* @param c The current connection
|
||||
* @param bb The brigade to filter
|
||||
* @param max_blank_lines Max number of blank lines to consume, or zero
|
||||
* to consider them as data (single read).
|
||||
* @return APR_SUCCESS: connection established with data available,
|
||||
* APR_EAGAIN: connection established and empty,
|
||||
* APR_NOTFOUND: too much blank lines,
|
||||
* APR_E*: connection/general error.
|
||||
*/
|
||||
AP_DECLARE(apr_status_t) ap_check_pipeline(conn_rec *c, apr_bucket_brigade *bb,
|
||||
unsigned int max_blank_lines);
|
||||
|
||||
/* Hooks */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user