diff options
author | Eric Wong <e@80x24.org> | 2021-09-13 20:53:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-13 21:11:14 +0000 |
commit | 62181c1f4fa112e066e01ba5f2cf666b9639adf2 (patch) | |
tree | 4ee856fd536d9e8f447a5d598ba3fa050856bf28 /lib/PublicInbox/Git.pm | |
parent | 530287cca30c9812d36e58e77d72742e5c1aa5f6 (diff) | |
download | public-inbox-62181c1f4fa112e066e01ba5f2cf666b9639adf2.tar.gz |
PIPE_BUF accounts for Linux being 4096 (and presumably other OSes differing), while _POSIX_PIPE_BUF is the minimum 512 value.
Diffstat (limited to 'lib/PublicInbox/Git.pm')
-rw-r--r-- | lib/PublicInbox/Git.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 219a1732..5ef1db2f 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -27,9 +27,7 @@ our $PIPE_BUFSIZ = 65536; # Linux default our $in_cleanup; our $RDTIMEO = 60_000; # milliseconds -use constant MAX_INFLIGHT => - (($^O eq 'linux' ? 4096 : POSIX::_POSIX_PIPE_BUF()) * 3) - / +use constant MAX_INFLIGHT => (POSIX::PIPE_BUF * 3) / 65; # SHA-256 hex size + "\n" in preparation for git using non-SHA1 my %GIT_ESC = ( |