mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_proxy: Make ap_proxy_retry_worker() into an optional function. Allows
mod_lbmethod_bybusyness, mod_lbmethod_byrequests, mod_lbmethod_bytraffic and mod_lbmethod_heartbeat to be loaded without mod_proxy yet being present, which happens when modules are loaded in alphabetical order. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209754 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
*/
|
||||
|
||||
#include "apr_hooks.h"
|
||||
#include "apr_optional.h"
|
||||
#include "apr.h"
|
||||
#include "apr_lib.h"
|
||||
#include "apr_strings.h"
|
||||
@@ -769,9 +770,8 @@ PROXY_DECLARE(int) ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
|
||||
* @note The error status of the worker will cleared if the retry interval has
|
||||
* elapsed since the last error.
|
||||
*/
|
||||
PROXY_DECLARE(int) ap_proxy_retry_worker(const char *proxy_function,
|
||||
proxy_worker *worker,
|
||||
server_rec *s);
|
||||
APR_DECLARE_OPTIONAL_FN(int, ap_proxy_retry_worker,
|
||||
(const char *proxy_function, proxy_worker *worker, server_rec *s));
|
||||
|
||||
/**
|
||||
* Acquire a connection from worker connection pool
|
||||
|
Reference in New Issue
Block a user