From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 11 04:22:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3A5516A420 for ; Sun, 11 Sep 2005 04:22:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38C8743D46 for ; Sun, 11 Sep 2005 04:22:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j8B4MgO5030811; Sat, 10 Sep 2005 23:22:42 -0500 (CDT) (envelope-from dan) Date: Sat, 10 Sep 2005 23:22:42 -0500 From: Dan Nelson To: Steven Hartland Message-ID: <20050911042242.GM84582@dan.emsphone.com> References: <003801c5b67e$f4c96120$b3db87d4@multiplay.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003801c5b67e$f4c96120$b3db87d4@multiplay.co.uk> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.10i Cc: freebsd-hackers@freebsd.org Subject: Re: setsockopt 228K fails with ERR#55 'No buffer space available' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2005 04:22:43 -0000 In the last episode (Sep 11), Steven Hartland said: > The following fails with ERR#55 'No buffer space available' > int buf_size = (228*1024); > int ret = setsockopt( s, SOL_SOCKET, SO_SNDBUF, (void*) &buf_size, sizeof( > buf_size ) ); > > This appears like its controlled by kern.ipc.maxsockbuf which is > default of 256k so the above should work if its per socket and not > total? I think you want net.inet.tcp.sendspace; kern.ipc.maxsockbuf seems to be unused based on a quick grep of the source. Also check the sockbufsize rlimit, although I think that defaults to unlimited. -- Dan Nelson dnelson@allantgroup.com