diff options
author | Eric Wong <e@80x24.org> | 2021-08-16 07:29:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-16 20:07:51 +0000 |
commit | 943be29048b2aa652b53929243bdda3d5464f980 (patch) | |
tree | cb18beb9ab3b616b49cd63f558657cd64923b6ae /t | |
parent | 0a3bcc909a9b023755079ee57f347f33aac75d3e (diff) | |
download | public-inbox-943be29048b2aa652b53929243bdda3d5464f980.tar.gz |
Persistent lei-daemon still leads to ECONNRESET client errors on FreeBSD, and maxing out the kern.ipc.soacceptqueue sysctl (as documented in the FreeBSD listen(2) manpage) doesn't seem to help. "make check-run" is still 4-5s faster than "make check" on my FreeBSD VM even after this change, so it's still a worthwhile improvement.
Diffstat (limited to 't')
-rwxr-xr-x | t/run.perl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -52,7 +52,11 @@ $run_log->autoflush(1); # one reader, many writers key2sub($_) for @tests; # precache my ($for_destroy, $lei_env, $lei_daemon_pid, $owner_pid); -if (!$ENV{TEST_LEI_DAEMON_PERSIST_DIR} && + +# I get ECONNRESET from lei on FreeBSD 11.3 even with +# kern.ipc.soacceptqueue=1073741823, so persistent lei-daemon in tests +# is Linux-only for now: +if ($^O eq 'linux' && !$ENV{TEST_LEI_DAEMON_PERSIST_DIR} && (PublicInbox::Spawn->can('recv_cmd4') || eval { require Socket::MsgHdr })) { $lei_env = {}; |