From 6feb58ba2e9dee57b474e82e871a8945b537325e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 10 Jun 2019 03:02:11 +0000 Subject: ds: do not distinguish between POLLHUP and POLLERR In my experience, both are worthless as any normal read/write call path will be wanting to check errors and deal with them appropriately; so we can just call event_read, for now. Eventually, there'll probably be only one callback for dealing with all in/out/err/hup events to simplify logic, especially w.r.t TLS socket negotiation. --- lib/PublicInbox/HTTPD/Async.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/PublicInbox/HTTPD') diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm index 60701085..4d0c8d5b 100644 --- a/lib/PublicInbox/HTTPD/Async.pm +++ b/lib/PublicInbox/HTTPD/Async.pm @@ -76,8 +76,6 @@ sub async_pass { } sub event_read { $_[0]->{cb}->(@_) } -sub event_hup { $_[0]->{cb}->(@_) } -sub event_err { $_[0]->{cb}->(@_) } sub close { my $self = shift; -- cgit v1.2.3-24-ge0c7