]> Sergey Matveev's repositories - public-inbox.git/commit
ipc: fix IO::FDPass use with a worker limit of 1
authorEric Wong <e@80x24.org>
Sun, 10 Jan 2021 12:15:13 +0000 (12:15 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Jan 2021 03:51:42 +0000 (03:51 +0000)
commit4e54b398ad511e5177ae2cc2243eba9408f840a8
tree922e7bc8ffa8c073e3ce7182ea3d76010838af95
parent6cc0e6870cb4950c08646769f2a7e30729b7d409
ipc: fix IO::FDPass use with a worker limit of 1

IO::FDPass is our last choice for implementing the workqueue
because its lack of atomicity makes it impossible to guarantee
all requests of a single group hit a single worker out of many.

So the only way to use IO::FDPass for workqueues it to only have
a single worker.  A single worker still buys us a small amount
of parallelism because of the parent process.
lib/PublicInbox/IPC.pm
t/ipc.t