diff options
author | Eric Wong <e@80x24.org> | 2016-05-15 08:41:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-15 08:42:19 +0000 |
commit | 818d6be281bf8f3e1b98f26b666e7b5a5416db8f (patch) | |
tree | ad0c661ef394fdc49c1b604806aca67a219bd356 /lib | |
parent | 6ba65a74eba96a769fad7a41a658a8c2418a8e29 (diff) | |
download | yahns-818d6be281bf8f3e1b98f26b666e7b5a5416db8f.tar.gz |
The ab(1) command we use for testing is limited to 20000 open connections under Debian jessie; a perfectly reasonable limit to avoid port exhaustion. I never noticed this limit before, but systemd under Jessie seems to have upped the default RLIMIT_NOFILE to 65536(!), causing ab to error out. We don't even need 10K connections for testing, we just need to hit *some* limit before we start expiring. So lower the RLIMIT_NOFILE back to 1024 in the forked server process so we can test more quickly without running out of ports or memory, since exhausting the 65536 RLIMIT_NOFILE limit is not going to happen with a single TCP address.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions