]> Sergey Matveev's repositories - public-inbox.git/commit
ds: stop distinguishing event read and write callbacks
authorEric Wong <e@80x24.org>
Sun, 16 Jun 2019 06:11:28 +0000 (06:11 +0000)
committerEric Wong <e@80x24.org>
Sun, 16 Jun 2019 06:36:46 +0000 (06:36 +0000)
commitc6e7de3579258b73aed9ee5f96c4cb25bb335c86
tree2cf41bfd355431c74cdcc316840f9f2739ea215d
parent3c076ce7bb6ac638c49dc2fd533d2193b2a8dad2
ds: stop distinguishing event read and write callbacks

Having separate read/write callbacks in every class is too
confusing to my easily-confused mind.  Instead, give every class
an "event_step" callback which is easier to wrap my head around.

This will make future code to support IO::Socket::SSL-wrapped
sockets easier-to-digest, since SSL_write() can require waiting
on POLLIN events, and SSL_read() can require waiting on POLLOUT
events.
lib/PublicInbox/DS.pm
lib/PublicInbox/EvCleanup.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/HTTPD/Async.pm
lib/PublicInbox/Listener.pm
lib/PublicInbox/NNTP.pm
lib/PublicInbox/ParentPipe.pm