Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 47504 invoked from network); 18 Sep 2007 13:32:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 13:32:54 -0000 Received: (qmail 91290 invoked by uid 500); 18 Sep 2007 13:32:45 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 91247 invoked by uid 500); 18 Sep 2007 13:32:45 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 91236 invoked by uid 99); 18 Sep 2007 13:32:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 06:32:45 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 13:34:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C66401A9832; Tue, 18 Sep 2007 06:32:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r576910 - in /httpd/httpd/branches/2.2.x: STATUS include/ap_mmn.h modules/proxy/mod_proxy.c modules/proxy/mod_proxy.h modules/proxy/proxy_util.c Date: Tue, 18 Sep 2007 13:32:29 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070918133229.C66401A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Tue Sep 18 06:32:28 2007 New Revision: 576910 URL: http://svn.apache.org/viewvc?rev=576910&view=rev Log: Merge r451575, r451582 from trunk: Enable retry=0 for the worker. This allows to have an option to always retry the workers in error state instead using a specified time. Move new struct member to the end of the struct, so we can keep the compatibility. Submitted by: mturk Reviewed by: jim Modified: httpd/httpd/branches/2.2.x/STATUS httpd/httpd/branches/2.2.x/include/ap_mmn.h httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.h httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c Modified: httpd/httpd/branches/2.2.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/STATUS?rev=576910&r1=576909&r2=576910&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/STATUS (original) +++ httpd/httpd/branches/2.2.x/STATUS Tue Sep 18 06:32:28 2007 @@ -79,16 +79,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_proxy: Enable retry=0 for the worker. - Trunk version of patch: - http://svn.apache.org/viewvc?view=rev&revision=451575 - http://svn.apache.org/viewvc?view=rev&revision=451582 - Backport version for 2.2.x of patch: - Trunk version of patch works but requires - http://people.apache.org/~jim/patches/retry_set-mmn.patch - in addition for MMN bump. - +1: jim, niq, rpluem - * mod_proxy_ajp: Differentiate within AJP between GET and HEAD requests. PR 43060 Trunk version of patch: Modified: httpd/httpd/branches/2.2.x/include/ap_mmn.h URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/include/ap_mmn.h?rev=576910&r1=576909&r2=576910&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/include/ap_mmn.h (original) +++ httpd/httpd/branches/2.2.x/include/ap_mmn.h Tue Sep 18 06:32:28 2007 @@ -114,6 +114,7 @@ * 20051115.4 (2.2.4) Added ap_get_server_banner() and * ap_get_server_description() (minor) * 20051115.5 (2.2.5) Added ap_mpm_safe_kill() (minor) + * 20051115.6 (2.2.7) Added retry_set to proxy_worker (minor) * */ @@ -122,7 +123,7 @@ #ifndef MODULE_MAGIC_NUMBER_MAJOR #define MODULE_MAGIC_NUMBER_MAJOR 20051115 #endif -#define MODULE_MAGIC_NUMBER_MINOR 5 /* 0...n */ +#define MODULE_MAGIC_NUMBER_MINOR 6 /* 0...n */ /** * Determine if the server's current MODULE_MAGIC_NUMBER is at least a Modified: httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c?rev=576910&r1=576909&r2=576910&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c (original) +++ httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c Tue Sep 18 06:32:28 2007 @@ -85,9 +85,10 @@ * in error state, it will be retried after that timeout. */ ival = atoi(val); - if (ival < 1) - return "Retry must be at least one second"; + if (ival < 0) + return "Retry must be a positive value"; worker->retry = apr_time_from_sec(ival); + worker->retry_set = 1; } else if (!strcasecmp(key, "ttl")) { /* Time in seconds that will destroy all the connections Modified: httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.h URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.h?rev=576910&r1=576909&r2=576910&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.h (original) +++ httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.h Tue Sep 18 06:32:28 2007 @@ -330,6 +330,7 @@ int lbset; /* load balancer cluster set */ apr_interval_time_t ping_timeout; char ping_timeout_set; + char retry_set; }; /* Modified: httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c?rev=576910&r1=576909&r2=576910&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c (original) +++ httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c Tue Sep 18 06:32:28 2007 @@ -1722,7 +1722,7 @@ } /* Set default parameters */ - if (!worker->retry) { + if (!worker->retry_set) { worker->retry = apr_time_from_sec(PROXY_WORKER_DEFAULT_RETRY); } /* By default address is reusable */