From owner-freebsd-current@FreeBSD.ORG Thu Nov 24 16:51:28 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D800316A41F for ; Thu, 24 Nov 2005 16:51:28 +0000 (GMT) (envelope-from mayank@microsoft.com) Received: from mail-sin2.microsoft.com (mail-sin2.microsoft.com [207.46.50.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C50343D6E for ; Thu, 24 Nov 2005 16:51:27 +0000 (GMT) (envelope-from mayank@microsoft.com) Received: from APS-MSG-01.southpacific.corp.microsoft.com ([157.60.218.52]) by mail-sin2.microsoft.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Nov 2005 00:51:26 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 25 Nov 2005 00:51:26 +0800 Message-ID: <3A5384BC2FBA4C488865F2275A036BFF040B269C@APS-MSG-01.southpacific.corp.microsoft.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: What is the correct behaviour for local socket(AF_UNIX) in the following scenario? thread-index: AcXxFp58uFz/JQ5cRk61nDgcDjPArQAAKXyA From: "Mayank Kumar" To: X-OriginalArrivalTime: 24 Nov 2005 16:51:26.0938 (UTC) FILETIME=[4F729BA0:01C5F117] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What is the correct behaviour for local socket(AF_UNIX) in the following scenario? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2005 16:51:29 -0000 =20 Hi All I am trying to understand the behavior of localsockets in the following scenario. =20 A process p1 writes a huge amoount of data to a AF_UNIX,DGRAM socket and exits. Now if there is no process p2 to read the data written by process p1 from the same localsocket, then this has resulted in a huge memory leak on a FreeBSD system. =20 I want to understand, if there is a mechanism in FreeBsd to take care of this leak or this is the expected behaviour and application writers should take care of this situation. Also what should be the behaviour on such a socket if shutdown or close is issued on such a socket. Any help on the behaviour on other unixes in the same scenario would also help a lot. =20 Thanks & Regards Mayank =20