From owner-freebsd-net@FreeBSD.ORG Thu Jan 15 16:34:45 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BCE877 for ; Thu, 15 Jan 2015 16:34:45 +0000 (UTC) Received: from mx142.netapp.com (mx142.netapp.com [216.240.21.19]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "mx142.netapp.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7366EB66 for ; Thu, 15 Jan 2015 16:34:44 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.09,404,1418112000"; d="scan'208";a="11958508" Received: from hioexcmbx07-prd.hq.netapp.com ([10.122.105.40]) by mx142-out.netapp.com with ESMTP; 15 Jan 2015 08:29:34 -0800 Received: from HIOEXCMBX02-PRD.hq.netapp.com (10.122.105.35) by hioexcmbx07-prd.hq.netapp.com (10.122.105.40) with Microsoft SMTP Server (TLS) id 15.0.995.29; Thu, 15 Jan 2015 08:29:34 -0800 Received: from HIOEXCMBX02-PRD.hq.netapp.com ([::1]) by hioexcmbx02-prd.hq.netapp.com ([fe80::906c:fcf4:e0a8:9f81%21]) with mapi id 15.00.0995.031; Thu, 15 Jan 2015 08:29:34 -0800 From: "Quattlebaum, Ryan" To: "freebsd-net@freebsd.org" Subject: Accessing socket APIs soon after accept Thread-Topic: Accessing socket APIs soon after accept Thread-Index: AQHQMN+s1D+Mgs6QWka0EkIfHwtzNg== Date: Thu, 15 Jan 2015 16:29:34 +0000 Message-ID: <1421339375968.94209@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.122.56.79] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2015 16:34:45 -0000 Is there anything preventing applications from calling functions e.g. getso= ckname() right after accept()? Or is there a recommended pattern that appli= cations should use to ensure they get correct data? We recently upgraded to= a new version of Apache and are seeing uninitialized data coming back from= a few of these calls.=0A= =0A= Thanks,=0A= =0A= Ryan Quattlebaum=0A= Software Developer, NetApp, Inc.=