diff options
author | Eric Wong <e@80x24.org> | 2019-06-24 02:52:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-24 05:26:26 +0000 |
commit | f41dc46f6213661ba51443d6cb0d6a9ba4d41472 (patch) | |
tree | b3be389a55751c0869016e75de563532cab2cbda /lib/PublicInbox/NNTP.pm | |
parent | e8dce524749fccb5b0044a92e221b03282f5024e (diff) | |
download | public-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/NNTP.pm')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index fe01627f..eb1679a7 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -97,11 +97,10 @@ sub expire_old () { sub new ($$$) { my ($class, $sock, $nntpd) = @_; my $self = fields::new($class); - $self->SUPER::new($sock); + $self->SUPER::new($sock, PublicInbox::DS::EPOLLIN()); $self->{nntpd} = $nntpd; res($self, '201 ' . $nntpd->{servername} . ' ready - post via email'); $self->{rbuf} = ''; - $self->watch_read(1); update_idle_time($self); $expt ||= PublicInbox::EvCleanup::later(*expire_old); $self; |