summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2009-01-30 17:34:58 +0000
committergilles <gilles@openbsd.org>2009-01-30 17:34:58 +0000
commit9147e9a76c95c7dbf5ad7052413435acb0a00e15 (patch)
tree896f7153d0edf5c91896954f34db8837a89530c5 /lib/libc
parentsync the part copied from ip_output: always initialize IP checksum (diff)
downloadwireguard-openbsd-9147e9a76c95c7dbf5ad7052413435acb0a00e15.tar.xz
wireguard-openbsd-9147e9a76c95c7dbf5ad7052413435acb0a00e15.zip
bump descriptors limit to the max and set the maximum connections count to
three quarters of that limit (a session typically has 3 descriptors). when we hit that limit, we stop accepting connections, and when client closes a session, we start accepting connections again. this prevents us from going into a session that is likely to fail because of scarce resources. idea discussed with jacekm@, code mostly ripped from relayd
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions