]> Sergey Matveev's repositories - public-inbox.git/commit
cmd_ipc4: retry sendmsg on ENOBUFS/ENOMEM/ETOOMANYREFS
authorEric Wong <e@80x24.org>
Sat, 23 Oct 2021 21:53:46 +0000 (21:53 +0000)
committerEric Wong <e@80x24.org>
Sat, 23 Oct 2021 23:43:10 +0000 (23:43 +0000)
commit9a7c75b64e9dc351fddce61b32694d504c2e80c2
tree95c241b4401ed7c38d479a46a1ceb0ac1b5e1529
parent29c85048380d8b7a9cbfd632610740153fccc555
cmd_ipc4: retry sendmsg on ENOBUFS/ENOMEM/ETOOMANYREFS

I'm seeing ENOBUFS on a RAM-starved system, and slowing the
sender down enough for the receiver to drain the buffers seems
to work.  ENOMEM and ETOOMANYREFS could be in the same boat
as ENOBUFS.

Watching for POLLOUT events via select/poll/epoll_wait doesn't
seem to work, since the kernel can already sleep (or return
EAGAIN) for cases where POLLOUT would work.
lib/PublicInbox/CmdIPC4.pm
lib/PublicInbox/Spawn.pm