]> Sergey Matveev's repositories - public-inbox.git/commit
ds: stop caring about event flags set by epoll/poll/kqueue
authorEric Wong <e@80x24.org>
Mon, 10 Jun 2019 03:21:37 +0000 (03:21 +0000)
committerEric Wong <e@80x24.org>
Mon, 10 Jun 2019 05:05:15 +0000 (05:05 +0000)
commitb1fca235b174d4e3df674fd301e7bfba222a9e97
treec3df2812f9f1eef650677ed2da1c8312596110a3
parent6feb58ba2e9dee57b474e82e871a8945b537325e
ds: stop caring about event flags set by epoll/poll/kqueue

If we got something to write, then write it.  Otherwise, try
reading; and continue dealing with errors which normally occur
along the way.

Trying to read requests while we need to buffer in luserspace
is suicidal from a memory management standpoint.

The only adjustment needed for existing callers is EvCleanup;
where we need to ensure we're always calling the dummy
EvCleanup::event_write callback to accomplish nothing.
lib/PublicInbox/DS.pm
lib/PublicInbox/EvCleanup.pm