summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy.h
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2013-08-23 18:48:42 +0200
committerJim Jagielski <jim@apache.org>2013-08-23 18:48:42 +0200
commit357828f9d22e2f430bdfe6fe728998c3e93241ab (patch)
tree80a1c309fa5afdf54ebe02d698da1a651c0d006b /modules/proxy/mod_proxy.h
parentSave some cycles... (diff)
downloadapache2-357828f9d22e2f430bdfe6fe728998c3e93241ab.tar.xz
apache2-357828f9d22e2f430bdfe6fe728998c3e93241ab.zip
Allow for a simple socket check in addition to the
higher level protocol-level checks for backends... Not sure if it makes sense to do both or not... Comments? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1516930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_proxy.h')
-rw-r--r--modules/proxy/mod_proxy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h
index 8ff4b85149..e36f3f734c 100644
--- a/modules/proxy/mod_proxy.h
+++ b/modules/proxy/mod_proxy.h
@@ -972,6 +972,13 @@ PROXY_DECLARE(int) ap_proxy_pass_brigade(apr_bucket_alloc_t *bucket_alloc,
APR_DECLARE_OPTIONAL_FN(int, ap_proxy_clear_connection,
(request_rec *r, apr_table_t *headers));
+
+/**
+ * @param socket socket to test
+ * @return TRUE if socket is connected/active
+ */
+PROXY_DECLARE(int) ap_proxy_is_socket_connected(apr_socket_t *socket);
+
#define PROXY_LBMETHOD "proxylbmethod"
/* The number of dynamic workers that can be added when reconfiguring.