diff options
-rw-r--r-- | lib/PublicInbox/GitHTTPBackend.pm | 2 | ||||
-rwxr-xr-x | script/public-inbox-httpd | 4 |
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; |