setsockopt 228K fails with ERR#55 'No buffer space available'

Steven Hartland killing at multiplay.co.uk
Sun Sep 11 06:08:13 PDT 2005


Thanks dan but I already tried that and it doesn't work but maxsockbuf
does. Really looking for the affects that altering that might have and
if its a good idea. 256k send and receive buffers on a socket seem
very large to me.

    Steve 
----- Original Message ----- 
From: "Dan Nelson" <dnelson at allantgroup.com>


> 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.


================================================
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 at multiplay.co.uk.



More information about the freebsd-hackers mailing list