Date: Sun, 11 Sep 2005 04:14:39 +0100 From: "Steven Hartland" <killing@multiplay.co.uk> To: <freebsd-hackers@freebsd.org> Subject: setsockopt 228K fails with ERR#55 'No buffer space available' Message-ID: <003801c5b67e$f4c96120$b3db87d4@multiplay.co.uk>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003801c5b67e$f4c96120$b3db87d4>