From owner-freebsd-questions Sat Sep 7 10:05:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA18729 for questions-outgoing; Sat, 7 Sep 1996 10:05:09 -0700 (PDT) Received: from broken.whitefang.com (broken.whitefang.com [199.173.153.182]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA18708 for ; Sat, 7 Sep 1996 10:05:00 -0700 (PDT) Received: from localhost (shadows@localhost) by broken.whitefang.com (8.7.5/8.7.3) with SMTP id RAA01510 for ; Sat, 7 Sep 1996 17:03:40 +0300 (AST) X-Authentication-Warning: broken.whitefang.com: shadows owned process doing -bs Date: Sat, 7 Sep 1996 17:03:40 +0300 (AST) From: The ShadowS Know Reply-To: shadows@whitefang.com To: freebsd-questions@freebsd.org Subject: Buffer limit on socket Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'vr recently put together a program that eventually shoots out hundreds of UDP packets for asynchronous DNS lookups. It worked fine on a number of platforms my clients are using (SCO Unix, Linux etc), when I decided to compile and test it on FreeBSD I wound up with one problem even though I found a fix around, I'm just wondering why FreeBSD has it. Basically after the hundred or so packet bieng shot I'd get [ENOBUFS] The system was unable to allocate an internal buffer. The operation may succeed when buffers become available. (taken from the manpage) I just had it wait for packets to arrive and then shoot out again. Seemed to work fine. But this does slow it down a bit. Is there a way of increasing my socket buffer size? I tried some socket options with no result. It looks like an internal kernel socket allocation to me (abviously). Is there a way of recompiling my kernel and increasing the size? Like I could with descriptors and childproccesses per proccess? ------------------------------------------------------------------------------- ShadowS WhiteFang Unix Software Development Thamer Al-Herbish And Consultancy. shadows@whitefang.com Specialising in Custom Network Applications for Unix Systems. -------------------------------------------------------------------------------