]> granicus.if.org Git - apache/commitdiff
Don't bother w/ methods that return bodies. We don't
authorJim Jagielski <jim@apache.org>
Wed, 30 Dec 2015 16:44:46 +0000 (16:44 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 30 Dec 2015 16:44:46 +0000 (16:44 +0000)
handle them now anyway.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1722377 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index 9ccbf330b2486dbbf72a31646692852c15c480b8..c742d912166404ddaea9ef132643d976569db1cc 100644 (file)
@@ -29,7 +29,7 @@ module AP_MODULE_DECLARE_DATA proxy_hcheck_module;
 #define HCHECK_WATHCHDOG_INTERVAL (5)
 
 static char *methods[] = {
-      "NULL", "OPTIONS", "HEAD", "GET", "POST", "CPING", NULL
+      "NULL", "OPTIONS", "HEAD", "CPING", NULL
 };
 
 typedef struct {
@@ -257,12 +257,14 @@ static const char *set_hc_template(cmd_parms *cmd, void *dummy, const char *arg)
     return NULL;
 }
 
-static void hc_check(apr_pool_t *p, server_rec *s, apr_time_t now,
+static void hc_check(sctx_t *ctx, apr_pool_t *p, apr_time_t now,
                      proxy_worker *worker)
 {
+    server_rec *s = ctx->s;
     /* TODO: REMOVE ap_log_error call */
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO()
                  "Health check (%s).", worker->s->name);
+
     return;
 }
 
@@ -307,7 +309,7 @@ static apr_status_t hc_watchdog_callback(int state, void *data,
                                      worker->s->name, worker->s->method, (unsigned long)now,
                                      (unsigned long)worker->s->updated, (unsigned long)worker->s->interval);
                         if (worker->s->method && (now > worker->s->updated + worker->s->interval)) {
-                            hc_check(p, s, now, worker);
+                            hc_check(ctx, p, now, worker);
                         }
                         workers++;
                     }