]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Qspawn.pm
http: use bigger, but shorter-lived buffers for pipes
[public-inbox.git] / lib / PublicInbox / Qspawn.pm
index f2630a0f0109a624690edf38b849423b9b0af8dd..8f0b9fe240ebc378a81ce86a7207f73d71ec4f63 100644 (file)
@@ -128,7 +128,7 @@ sub psgi_qx {
        my $rpipe; # comes from popen_rd
        my $async = $env->{'pi-httpd.async'};
        my $cb = sub {
-               my $r = sysread($rpipe, my $buf, 8192);
+               my $r = sysread($rpipe, my $buf, 65536);
                if ($async) {
                        $async->async_pass($env->{'psgix.io'}, $qx, \$buf);
                } elsif (defined $r) {