diff options
author | Eric Wong <e@80x24.org> | 2019-12-25 07:50:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-26 10:48:19 +0000 |
commit | bfa40d0c4a970e5af0eae0441920a491c4f6fa1d (patch) | |
tree | 49f80c0ed96b50f922401e29db8d0d16d54ec5bc /lib/PublicInbox/Qspawn.pm | |
parent | 5c94a55c24a17c8250cf80d78246851c0a7c4087 (diff) | |
download | public-inbox-bfa40d0c4a970e5af0eae0441920a491c4f6fa1d.tar.gz |
Another step towards removing anonymous subs to eliminate a possible source of memory leaks and high memory use.
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r-- | lib/PublicInbox/Qspawn.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm index 651fa390..c2856609 100644 --- a/lib/PublicInbox/Qspawn.pm +++ b/lib/PublicInbox/Qspawn.pm @@ -185,7 +185,7 @@ reread: ($rpipe) = @_; # popen_rd result if ($async) { # PublicInbox::HTTPD::Async->new($rpipe, $cb, $end) - $async = $async->($rpipe, $cb, $end); + $async = $async->($rpipe, $cb, undef, $end); # $cb will call ->async_pass or ->close } else { # generic PSGI $cb->() while $qx; @@ -297,7 +297,7 @@ sub psgi_return { ($rpipe) = @_; if ($async) { # PublicInbox::HTTPD::Async->new($rpipe, $cb, $end) - $async = $async->($rpipe, $cb, $end); + $async = $async->($rpipe, $cb, undef, $end); # $cb will call ->async_pass or ->close } else { # generic PSGI $cb->() while $rd_hdr; |