Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 18392 invoked by uid 500); 21 Nov 2000 02:32:40 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 18369 invoked from network); 21 Nov 2000 02:32:31 -0000 X-Authentication-Warning: kurgan.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Mon, 20 Nov 2000 18:34:10 -0800 From: Greg Stein To: new-httpd@apache.org Subject: Re: cvs commit: apache-2.0/src/modules/proxy proxy_util.c Message-ID: <20001120183410.W21426@lyra.org> Mail-Followup-To: new-httpd@apache.org References: <20001120181021.10061.qmail@locus.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20001120181021.10061.qmail@locus.apache.org>; from chuck@locus.apache.org on Mon, Nov 20, 2000 at 06:10:21PM -0000 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Mon, Nov 20, 2000 at 06:10:21PM -0000, chuck@locus.apache.org wrote: > chuck 00/11/20 10:10:21 > > Modified: src/modules/proxy proxy_util.c > Log: > Restore Ryan's original intent in ap_proxy_doconnect() return value check > > Revision Changes Path > 1.31 +1 -2 apache-2.0/src/modules/proxy/proxy_util.c > > Index: proxy_util.c > =================================================================== > RCS file: /home/cvs/apache-2.0/src/modules/proxy/proxy_util.c,v > retrieving revision 1.30 > retrieving revision 1.31 > diff -u -r1.30 -r1.31 > --- proxy_util.c 2000/11/18 03:17:21 1.30 > +++ proxy_util.c 2000/11/20 18:10:19 1.31 > @@ -1114,8 +1114,7 @@ > if (rv == APR_SUCCESS) { > rv = apr_connect(sock, destsa); > } > - if (rv != APR_SUCCESS) > - { > + else if (rv != APR_SUCCESS) { > ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, > "proxy connect to %s port %d failed", host, port); > } The above change looks wrong. If the previous operation was a success, then it tries an apr_connect(). If the previous op, OR the apr_connect() fails, then the error is logged. In your change, only the failure from apr_getaddrinfo() gets logged. Nothing from apr_connect(). Cheers, -g -- Greg Stein, http://www.lyra.org/