about summary refs log tree commit homepage
path: root/lib/PublicInbox/Listener.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-08 19:24:07 +0000
committerEric Wong <e@80x24.org>2019-05-08 19:24:07 +0000
commitfe86054ee1e2d93b19762a34ed1aaebe43635ff0 (patch)
tree6504ddceac55dd03cad09d8bcc2a41eafe8bc273 /lib/PublicInbox/Listener.pm
parenta316ca7db9fd3ea7dded317ac6d4d0a6bf174fb3 (diff)
parent90c5a78c8f6239b27c32b816d1cd029196ba2fe2 (diff)
downloadpublic-inbox-fe86054ee1e2d93b19762a34ed1aaebe43635ff0.tar.gz
* origin/danga-bundle:
  DS: epoll: fix misordered EPOLL_CTL_DEL call
  DS: drop unused "_undef" sub
  syscall: drop readahead wrapper
  build: do not manify DS and Syscall pods
  DS: handle EINTR in IO::Poll path, too
  DS: workaround IO::Kqueue EINTR (mis-)handling
  DS: drop profiling support
  DS: remove unused fields and functions
  listener: use EPOLLEXCLUSIVE for listen sockets
  bundle Danga::Socket and Sys::Syscall
Diffstat (limited to 'lib/PublicInbox/Listener.pm')
-rw-r--r--lib/PublicInbox/Listener.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Listener.pm b/lib/PublicInbox/Listener.pm
index 52894cb3..a75a6fd9 100644
--- a/lib/PublicInbox/Listener.pm
+++ b/lib/PublicInbox/Listener.pm
@@ -5,7 +5,7 @@
 package PublicInbox::Listener;
 use strict;
 use warnings;
-use base 'Danga::Socket';
+use base 'PublicInbox::DS';
 use Socket qw(SOL_SOCKET SO_KEEPALIVE IPPROTO_TCP TCP_NODELAY);
 use fields qw(post_accept);
 require IO::Handle;
@@ -17,7 +17,7 @@ sub new ($$$) {
         listen($s, 1024);
         IO::Handle::blocking($s, 0);
         my $self = fields::new($class);
-        $self->SUPER::new($s); # calls epoll_create for the first socket
+        $self->SUPER::new($s, 1); # calls epoll_create for the first socket
         $self->watch_read(1);
         $self->{post_accept} = $cb;
         $self