summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-09-09 08:12:46 +0000
committerbluhm <bluhm@openbsd.org>2015-09-09 08:12:46 +0000
commit0987154651b9d941b283cd720e3ff7bfc431e576 (patch)
tree03cad93e59e73c78d141e5dcc2b0d90500bdd596 /lib/libc
parentRemove unused code. (diff)
downloadwireguard-openbsd-0987154651b9d941b283cd720e3ff7bfc431e576.tar.xz
wireguard-openbsd-0987154651b9d941b283cd720e3ff7bfc431e576.zip
To double the receive buffer of a socketpair does not help as sending
checks the send buffer size. So double both buffer sizes. Moreover the default for sending is 2048 and for receiving is 4096. This makes the existing double buffer algorithm inconsistent. It is better to make the buffers large enough to hold 8 full length messages. Just make sure that it does not shrink. Keep the approach that doubles the buffer sizes. When we are low on buffers and cannot reach the full size, increase it as much as possible. While there, add consistent error messages. OK benno@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions