As mentioned in the OP: recvspace+sendspace < maxsockbuf
maxsockbuf limited to kern.ipc.nmbclusters , nmbclusters*2KB/16=maxsockbuf
sysctl -a | egrep nmbcl\|maxsockb kern.ipc.maxsockbuf: 8388608 kern.ipc.nmbclusters: 65536
To increase maxsockbuf , ask the system to use more than the default mbufclusters via the mbufclusters boot argument: (SIP must be disabled before editing boot arguments)
nvram boot-args="ncl=131072" shutdown -r now
quote from here
source share