Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 44721 invoked from network); 4 Apr 2011 11:51:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 11:51:19 -0000 Received: (qmail 92875 invoked by uid 500); 4 Apr 2011 11:51:19 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 92820 invoked by uid 500); 4 Apr 2011 11:51:18 -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 92813 invoked by uid 99); 4 Apr 2011 11:51:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 11:51:18 +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:51:17 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4E04423888FD; Mon, 4 Apr 2011 11:50:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1088568 - /apr/apr/branches/1.5.x/network_io/win32/sockets.c Date: Mon, 04 Apr 2011 11:50:57 -0000 To: commits@apr.apache.org From: trawick@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110404115057.4E04423888FD@eris.apache.org> Author: trawick Date: Mon Apr 4 11:50:56 2011 New Revision: 1088568 URL: http://svn.apache.org/viewvc?rev=1088568&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.5.x/network_io/win32/sockets.c Modified: apr/apr/branches/1.5.x/network_io/win32/sockets.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/network_io/win32/sockets.c?rev=1088568&r1=1088567&r2=1088568&view=diff ============================================================================== --- apr/apr/branches/1.5.x/network_io/win32/sockets.c (original) +++ apr/apr/branches/1.5.x/network_io/win32/sockets.c Mon Apr 4 11:50:56 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