]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
daemon: improve warning on missing SO_ACCEPTFILTER
authorEric Wong <e@80x24.org>
Sat, 30 Nov 2024 22:59:05 +0000 (22:59 +0000)
committerEric Wong <e@80x24.org>
Sun, 1 Dec 2024 20:00:36 +0000 (20:00 +0000)
commit371b3b1963f802b2efd9328f52b7f38d90320874
treedb705f7badf42a77ea94a1bee90b93647f6e516e
parent452753e9e3183ab9d602fe029fbb1d865abd04cd
daemon: improve warning on missing SO_ACCEPTFILTER

I noticed tests were failing on a freshly booted FreeBSD
instance due to the accf_http module not being loaded and
triggering autodie-generated error messages from setsockopt.
Instead, give a helpful warning message for users to use
kldload(8) to load the necessary filter.

We'll also relax tests to ignore the kldload warning and fix an
overzealous use of /.*/ while we're at by using /[^\n]/ instead
to avoid filtering out subsequent lines.
lib/PublicInbox/Daemon.pm
lib/PublicInbox/TestCommon.pm
t/solver_git.t