]> Sergey Matveev's repositories - public-inbox.git/commit
lei: fix error reporting from lei/store -> lei-daemon
authorEric Wong <e@80x24.org>
Tue, 31 Aug 2021 11:21:25 +0000 (11:21 +0000)
committerEric Wong <e@80x24.org>
Tue, 31 Aug 2021 11:29:13 +0000 (11:29 +0000)
commitb184aaec8b65a1e50806d445878f879988403c96
tree09f0ed302eb7c9ed5d20deaa34fce3b038a1d4f2
parent4853dee600d76ed5de5807605fa78bcd0557babd
lei: fix error reporting from lei/store -> lei-daemon

We must set autoflush to ensure timely notification of clients;
and lei-daemon must not block when waiting on reads in case of
spurious wakeups.

Finally, if no clients are connected to lei-daemon, write to
syslog to ensure the error is visible.
lib/PublicInbox/LeiStore.pm
lib/PublicInbox/LeiStoreErr.pm