diff options
author | Eric Wong <e@80x24.org> | 2023-10-31 20:42:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-01 07:08:09 +0000 |
commit | fdf90c0ffbf608ed08665eaffa5c750fa5a5bfee (patch) | |
tree | f9365a4472ef6e5dda901c68cc7c36b7da8c9fff /lib/PublicInbox/DS.pm | |
parent | 4d2f3651bde2f2c61b78973df56b6e6ee37a6dce (diff) | |
download | public-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/DS.pm')
-rw-r--r-- | lib/PublicInbox/DS.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index b30e9db6..9e1f66c2 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -287,8 +287,8 @@ sub event_loop (;$$) { do { my $timeout = RunTimers(); - # get up to 1000 FDs representing events - $Poller->ep_wait(1000, $timeout, \@active); + # grab whatever FDs are ready + $Poller->ep_wait($timeout, \@active); # map all FDs to their associated Perl object @active = @DescriptorMap{@active}; |