]> Sergey Matveev's repositories - public-inbox.git/commit
lei: keep client {sock} in short-lived workers
authorEric Wong <e@80x24.org>
Mon, 22 Feb 2021 11:22:51 +0000 (08:22 -0300)
committerEric Wong <e@80x24.org>
Mon, 22 Feb 2021 22:14:17 +0000 (18:14 -0400)
commit2fc7ac8bf713d10a77ed65ca9fa8836675d3a57f
tree7ef4dd17f6ee059b053808fa79edfd2b9b29839c
parentbaee8910c616611659da270af8bec50f70072a05
lei: keep client {sock} in short-lived workers

For non-persistent workers, there's no harm in keeping the
client socket open.  This means we can avoid dancing around
closing it in PublicInbox::LeiAuth::ipc_atfork_child.
Eventually, other WQ workers will trigger "git credential"
spawning in script/lei directly.
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiAuth.pm