setsockopt 228K fails with ERR#55 'No buffer space available'
Dan Nelson
dnelson at allantgroup.com
Sat Sep 10 21:22:43 PDT 2005
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 at allantgroup.com
More information about the freebsd-hackers
mailing list