about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-01 07:48:53 +0000
committerEric Wong <e@80x24.org>2016-03-01 08:33:52 +0000
commit989fdc23d1c0983c3581495b8c22176d6a4eceed (patch)
tree7fc92c2eaf9ce3ab93d3275fb691e1efc2a152ba
parentebf0acfefa318b8404f30bb69008183478640f0e (diff)
downloadpublic-inbox-989fdc23d1c0983c3581495b8c22176d6a4eceed.tar.gz
We'll have to use it some more before deciding it is a public
interface.  I do hope for it to be a usable public interface
one day for other users.
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm2
-rwxr-xr-xscript/public-inbox-httpd4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index 56bf24f4..c84eefcf 100644
--- a/lib/PublicInbox/GitHTTPBackend.pm
+++ b/lib/PublicInbox/GitHTTPBackend.pm
@@ -224,7 +224,7 @@ sub serve_smart {
         if (my $async = $env->{'pi-httpd.async'}) {
                 $rpipe = $async->($rpipe, $cb);
                 sub { ($res) = @_ } # let Danga::Socket handle the rest.
-        } else { # synchronous loop
+        } else { # synchronous loop for other PSGI servers
                 $vin = '';
                 vec($vin, fileno($rpipe), 1) = 1;
                 sub {
diff --git a/script/public-inbox-httpd b/script/public-inbox-httpd
index f1a5d799..d4070595 100755
--- a/script/public-inbox-httpd
+++ b/script/public-inbox-httpd
@@ -59,6 +59,10 @@ daemon_run('0.0.0.0:8080', $refresh,
 
 1;
 
+# XXX This is a totally unstable API for public-inbox internal use only
+# This is exposed via the 'pi-httpd.async' key in the PSGI env hash.
+# The name of this key is not even stable!
+# Currently is is intended for use with read-only pipes.
 package PublicInbox::HTTPD::Async;
 use strict;
 use warnings;