Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 00:51:26 +0800
From:      "Mayank Kumar" <mayank@microsoft.com>
To:        <freebsd-current@freebsd.org>
Subject:   What is the correct behaviour for local socket(AF_UNIX) in the following scenario?
Message-ID:  <3A5384BC2FBA4C488865F2275A036BFF040B269C@APS-MSG-01.southpacific.corp.microsoft.com>

next in thread | raw e-mail | index | archive | help
=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A5384BC2FBA4C488865F2275A036BFF040B269C>