hi, found while deploying a new unbound on 7.8, at startup it warns loudly about the so-sndbuf default:
[1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). [1760258776] unbound[40302:0] warning: setsockopt(..., SO_SNDBUF, ...) was not granted: No buffer space available [1760258776] unbound[40302:0] warning: so-sndbuf 4194304 was not granted. Got 9216. To fix: start with root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values. or set so-sndbuf: 0 (use system value). that matches the upstream changelog entry: 15 September 2025: Wouter - Fix to print warning for when so-sndbuf setsockopt is not granted. should we set so-sndbuf to 0 in the default shipped config, change the default in the code, silence the warnings ? Landry
