On 2022-04-25, Daniel Schuermann <openbsd@2718282.net> wrote:
> I can't get transmission (bittorrent client) to work properly.
>
> From the logs:
> transmission-daemon: UDP Failed to set receive buffer:
> requested 4194304, got 41600
>
> On Linux I would do:
> sysctl net.core.rmem_max=4194304
> I couldn't figure out the correct settings for OpenBSD.
>
> net.inet.udp.recvspace sets the default, not the max buffer size,
> e.g. sysctl net.inet.udp.recvspace=4194304 causes errors:
> nslookup openbsd.org
> nslookup: isc_socket_create: not enough free resources
That is the right sysctl, the alternative is to set per-socket with
setsockopt() (SO_SNDBUF, SO_RCVBUF).
The max is 256K (262144).
--
Please keep replies on the mailing list.
No comments:
Post a Comment