diff options
author | Eric Wong <e@80x24.org> | 2019-06-16 06:11:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-16 06:36:46 +0000 |
commit | c6e7de3579258b73aed9ee5f96c4cb25bb335c86 (patch) | |
tree | 2cf41bfd355431c74cdcc316840f9f2739ea215d /lib/PublicInbox/HTTPD/Async.pm | |
parent | 3c076ce7bb6ac638c49dc2fd533d2193b2a8dad2 (diff) | |
download | public-inbox-c6e7de3579258b73aed9ee5f96c4cb25bb335c86.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/HTTPD/Async.pm')
-rw-r--r-- | lib/PublicInbox/HTTPD/Async.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm index 4d0c8d5b..604627ab 100644 --- a/lib/PublicInbox/HTTPD/Async.pm +++ b/lib/PublicInbox/HTTPD/Async.pm @@ -75,7 +75,7 @@ sub async_pass { $self->{cb} = main_cb($http, $fh, $bref); } -sub event_read { $_[0]->{cb}->(@_) } +sub event_step { $_[0]->{cb}->(@_) } sub close { my $self = shift; |