From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 11 03:15:38 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 51D5A16A41F for ; Sun, 11 Sep 2005 03:15:38 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD75543D45 for ; Sun, 11 Sep 2005 03:15:37 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.1.R) with ESMTP id md50001809503.msg for ; Sun, 11 Sep 2005 04:14:56 +0100 Message-ID: <003801c5b67e$f4c96120$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Sun, 11 Sep 2005 04:14:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Sun, 11 Sep 2005 04:14:56 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Sun, 11 Sep 2005 04:14:57 +0100 Subject: 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 03:15:38 -0000 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? Does anyone know the implications of increasing this to say 512k and is it per socket or global? Does anyone have any experience with apps setting SNDBUF to large values like 256k? Steve / K ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk.