about summary refs log tree commit homepage
path: root/lib/PublicInbox/DSPoll.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-31 20:42:52 +0000
committerEric Wong <e@80x24.org>2023-11-01 07:08:09 +0000
commitfdf90c0ffbf608ed08665eaffa5c750fa5a5bfee (patch)
treef9365a4472ef6e5dda901c68cc7c36b7da8c9fff /lib/PublicInbox/DSPoll.pm
parent4d2f3651bde2f2c61b78973df56b6e6ee37a6dce (diff)
downloadpublic-inbox-fdf90c0ffbf608ed08665eaffa5c750fa5a5bfee.tar.gz
The epoll implementation is the only one which respects the
limit (kevent would, but IO::KQueue does not).  In any case,
I'm not a fan of the maxevents=1000 historical default since
it leads to fairness problems with shared non-blocking listeners
across multiple daemon workers.
Diffstat (limited to 'lib/PublicInbox/DSPoll.pm')
-rw-r--r--lib/PublicInbox/DSPoll.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/DSPoll.pm b/lib/PublicInbox/DSPoll.pm
index 0446df4c..b947f756 100644
--- a/lib/PublicInbox/DSPoll.pm
+++ b/lib/PublicInbox/DSPoll.pm
@@ -18,7 +18,7 @@ use Errno ();
 sub new { bless {}, __PACKAGE__ } # fd => events
 
 sub ep_wait {
-        my ($self, $maxevents, $timeout_msec, $events) = @_;
+        my ($self, $timeout_msec, $events) = @_;
         my (@pset, $n, $fd, $revents, $nval);
         while (my ($fd, $events) = each %$self) {
                 my $pevents = $events & EPOLLIN ? POLLIN : 0;