]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
send_cmd: use (practically) infinite retries for writers
authorEric Wong <e@80x24.org>
Fri, 29 Nov 2024 23:53:59 +0000 (23:53 +0000)
committerEric Wong <e@80x24.org>
Sat, 30 Nov 2024 22:43:35 +0000 (22:43 +0000)
commit237eb43a50ef7a9bd117635077421d7463158cbe
treea88fbb0499dfb25ad0a17d78567e4353955337a3
parentf0cee1dcfcfc36e36573ef89ccdd84b0387e1a7b
send_cmd: use (practically) infinite retries for writers

Write tools (-*index, -watch, -mda, lei) should never croak due
to the system being busy.  So make the retry infinite to benefit
users who run several parallel imports at once on a slower
system.  The previous 5s timeout was too close to failing in
my own experience using `lei import' on an old, busy machine.

For lei (inotify || EVFILT_VNODE) watches, we now retry on busy
sockets to avoid loss of FS change notifications.

On the contrary, public-facing read-only interfaces have always
been assumed to constantly be under attack.  Thus continuing to
drop requests due to a lack of kernel memory/buffers is probably
prudent.
lib/PublicInbox/CmdIPC4.pm
lib/PublicInbox/IPC.pm
lib/PublicInbox/Spawn.pm
lib/PublicInbox/Syscall.pm
lib/PublicInbox/WQBlocked.pm
lib/PublicInbox/XapClient.pm