about summary refs log tree commit homepage
path: root/lib/PublicInbox/HTTPD.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:53 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commit5afb24f06627641e3fed608e807b5ab628cda348 (patch)
treeefb87fc794a436b5aa1d99c34cbee7ff33bde62c /lib/PublicInbox/HTTPD.pm
parent1cf5a6129b5ae4991275862aab539ddea812890a (diff)
downloadpublic-inbox-5afb24f06627641e3fed608e807b5ab628cda348.tar.gz
We no longer favor getline+close for streaming PSGI responses
when using public-inbox-httpd.  We still support it for other
PSGI servers, though.
Diffstat (limited to 'lib/PublicInbox/HTTPD.pm')
-rw-r--r--lib/PublicInbox/HTTPD.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/HTTPD.pm b/lib/PublicInbox/HTTPD.pm
index 33193969..a9f55ff6 100644
--- a/lib/PublicInbox/HTTPD.pm
+++ b/lib/PublicInbox/HTTPD.pm
@@ -36,9 +36,8 @@ sub new {
 
                 # XXX unstable API!, only GitHTTPBackend needs
                 # this to limit git-http-backend(1) parallelism.
-                # The rest of our PSGI code is generic, relying
-                # on "pull" model using "getline" to prevent
-                # over-buffering.
+                # We also check for the truthiness of this to
+                # detect when to use git_async_cat for slow blobs
                 'pi-httpd.async' => \&pi_httpd_async
         );
         bless {