about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-25 00:29:32 +0000
committerEric Wong <e@80x24.org>2023-10-25 07:28:36 +0000
commit92fa0f29774642b848ff23fccda51c4e34342dbe (patch)
treeb4835e8508da1949f41133f6ed3e8fb9e66f3d98 /lib/PublicInbox/LEI.pm
parent8ea09a53c691e2f2980bb09612f45d2a5946340a (diff)
downloadpublic-inbox-92fa0f29774642b848ff23fccda51c4e34342dbe.tar.gz
This is intended to replace psgi_return and HTTPD/Async
entirely, hopefully making our code less convoluted while
maintaining the ability to handle slow clients on
memory-constrained systems

This was made possible by the philosophy shift in commit 21a539a2df0c
(httpd/async: switch to buffering-as-fast-as-possible, 2019-06-28).

We'll still support generic PSGI via the `pull' model with a
GetlineResponse class which is similar to the old GetlineBody.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 56e4c001..7bc7b2dc 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -1567,7 +1567,7 @@ sub request_umask {
 }
 
 sub _stdin_cb { # PublicInbox::InputPipe::consume callback for --stdin
-        my ($lei, $cb) = @_; # $_[-1] = $rbuf
+        my (undef, $lei, $cb) = @_; # $_[-1] = $rbuf
         $_[1] // return $lei->fail("error reading stdin: $!");
         $lei->{stdin_buf} .= $_[-1];
         do_env($lei, $cb) if $_[-1] eq '';