From 4d04100701704a1bd06cd16d846ff33cc1326994 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 11 Aug 2004 22:10:23 +0000 Subject: [PATCH] Remove unusable code. The constructor and destructor will be in proxy_util. Add a trace. Submitted by: mturk, jfclere git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104583 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 57735f2d20..07ccebc57c 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -457,12 +457,6 @@ static int proxy_needsdomain(request_rec *r, const char *url, const char *domain return HTTP_MOVED_PERMANENTLY; } -static apr_status_t worker_cleanup(void *theworker) -{ - - return APR_SUCCESS; -} - /* -------------------------------------------------------------- */ /* Invoke handler */ @@ -527,8 +521,11 @@ static int proxy_handler(request_rec *r) url = r->filename + 6; p = strchr(url, ':'); - if (p == NULL) + if (p == NULL) { + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, + "proxy_handler no URL in %s", r->filename); return HTTP_BAD_REQUEST; + } /* If the host doesn't have a domain name, add one and redirect. */ if (conf->domain != NULL) { @@ -578,12 +575,6 @@ static int proxy_handler(request_rec *r) ap_set_module_config(r->connection->conn_config, &proxy_module, mconf); } -#if 0 - /* register the connection->pool cleanup */ - apr_pool_cleanup_register(r->connection->pool, - (void *)mconf, worker_cleanup, - apr_pool_cleanup_null); -#endif } /* use the current balancer and worker. * the proxy_conn will be set in particular scheme handler -- 2.50.1