From owner-freebsd-net Tue Sep 17 23:50: 6 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D80837B401 for ; Tue, 17 Sep 2002 23:50:05 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B4843E4A for ; Tue, 17 Sep 2002 23:50:04 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.5/8.11.4) with ESMTP id g8I6o20x071765 for ; Wed, 18 Sep 2002 09:50:02 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <3D882218.249F72BE@he.iki.fi> Date: Wed, 18 Sep 2002 09:50:01 +0300 From: Petri Helenius X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.6-STABLE i386) X-Accept-Language: en,fi MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: socket receive space Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org What is the (preferred) way to figure out how much data is waiting on the receive buffer on a socket? I'm running largish >1M receive buffers and would like to log a warning message if the buffers ever get used near-full. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message