about summary refs log tree commit homepage
path: root/lib/PublicInbox/HTTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:18 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:26 +0000
commitf41dc46f6213661ba51443d6cb0d6a9ba4d41472 (patch)
treeb3be389a55751c0869016e75de563532cab2cbda /lib/PublicInbox/HTTP.pm
parente8dce524749fccb5b0044a92e221b03282f5024e (diff)
downloadpublic-inbox-f41dc46f6213661ba51443d6cb0d6a9ba4d41472.tar.gz
We can avoid the EPOLL_CTL_ADD && EPOLL_CTL_MOD sequence with
a single EPOLL_CTL_ADD.
Diffstat (limited to 'lib/PublicInbox/HTTP.pm')
-rw-r--r--lib/PublicInbox/HTTP.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm
index fcb5eb6c..afa71ea5 100644
--- a/lib/PublicInbox/HTTP.pm
+++ b/lib/PublicInbox/HTTP.pm
@@ -56,12 +56,11 @@ sub http_date () {
 sub new ($$$) {
         my ($class, $sock, $addr, $httpd) = @_;
         my $self = fields::new($class);
-        $self->SUPER::new($sock);
+        $self->SUPER::new($sock, PublicInbox::DS::EPOLLIN());
         $self->{httpd} = $httpd;
         $self->{rbuf} = '';
         ($self->{remote_addr}, $self->{remote_port}) =
                 PublicInbox::Daemon::host_with_port($addr);
-        $self->watch_read(1);
         $self;
 }