]> git.ipfire.org Git - thirdparty/bird.git/commit
IO: Ensure that socket rcvbuf is large enough
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 1 Aug 2024 12:55:05 +0000 (14:55 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 1 Aug 2024 12:55:05 +0000 (14:55 +0200)
commit5214d7e59fe4d5d89e14e8e7b654ded25f918afb
tree04759517700a21b3197be08766f9a86f724311af
parentc9836207f53be16860546f00fa27483f1e659551
IO: Ensure that socket rcvbuf is large enough

The socket structure has the field rbsize (receive buffer size), which
controls the size of the userspace receive buffer. There is also kernel
receive buffer, which in some cases may be smaller (e.g. on FreeBSD it
is by default ~8k). The patch ensures that the kernel receive buffer is
as large as the userspace receive buffer.
sysdep/unix/io.c