]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Listener.pm
get rid of unnecessary bytes::length usage
[public-inbox.git] / lib / PublicInbox / Listener.pm
index c831581076a0d582dfcd44ba0ca8c65b010dd797..64bba5b0fd7c491e7e1d5641116c83581c3e85e4 100644 (file)
@@ -20,7 +20,7 @@ sub new ($$$) {
        my ($class, $s, $cb) = @_;
        setsockopt($s, SOL_SOCKET, SO_KEEPALIVE, 1);
        setsockopt($s, IPPROTO_TCP, TCP_NODELAY, 1); # ignore errors on non-TCP
-       listen($s, 1024);
+       listen($s, 2**31 - 1); # kernel will clamp
        my $self = bless { post_accept => $cb }, $class;
        $self->SUPER::new($s, EPOLLIN|EPOLLET|EPOLLEXCLUSIVE);
 }