From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EDE751F8C6 for ; Mon, 16 Aug 2021 07:29:17 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/run.perl: fix "make check-run" on FreeBSD 11.x Date: Mon, 16 Aug 2021 07:29:17 +0000 Message-Id: <20210816072917.34078-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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. --- t/run.perl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/run.perl b/t/run.perl index acd60ff5..f6eb0ad3 100755 --- a/t/run.perl +++ b/t/run.perl @@ -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 = {};