Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 45126 invoked from network); 4 Apr 2011 11:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 11:52:17 -0000 Received: (qmail 98285 invoked by uid 500); 4 Apr 2011 11:52:17 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 98234 invoked by uid 500); 4 Apr 2011 11:52:16 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 98227 invoked by uid 99); 4 Apr 2011 11:52:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 11:52:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 11:52:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D529523888FD; Mon, 4 Apr 2011 11:51:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1088569 - /apr/apr/branches/1.4.x/network_io/win32/sockets.c Date: Mon, 04 Apr 2011 11:51:53 -0000 To: commits@apr.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110404115153.D529523888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trawick Date: Mon Apr 4 11:51:53 2011 New Revision: 1088569 URL: http://svn.apache.org/viewvc?rev=1088569&view=rev Log: Grab r1088352 from trunk: Windows: Save a call to getpeername() when trying to retrieve the remote address of a socket created by apr_socket_accept() Modified: apr/apr/branches/1.4.x/network_io/win32/sockets.c Modified: apr/apr/branches/1.4.x/network_io/win32/sockets.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/network_io/win32/sockets.c?rev=1088569&r1=1088568&r2=1088569&view=diff ============================================================================== --- apr/apr/branches/1.4.x/network_io/win32/sockets.c (original) +++ apr/apr/branches/1.4.x/network_io/win32/sockets.c Mon Apr 4 11:51:53 2011 @@ -253,6 +253,7 @@ APR_DECLARE(apr_status_t) apr_socket_acc (*new)->remote_addr->salen = sizeof((*new)->remote_addr->sa); memcpy (&(*new)->remote_addr->sa, &sa, salen); *(*new)->local_addr = *sock->local_addr; + (*new)->remote_addr_unknown = 0; /* The above assignment just overwrote the pool entry. Setting the local_addr pool for the accepted socket back to what it should be. Otherwise all