]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Qspawn.pm
qspawn|httpd/async: improve and fix out-of-date comments
[public-inbox.git] / lib / PublicInbox / Qspawn.pm
index 3247cd078cba71aaaa058798cff4840309ca7932..96fbf38d1cbda2e4c6c939757969c0b90d7b7032 100644 (file)
@@ -86,8 +86,6 @@ sub psgi_return {
                $fh->close if $fh; # async-only
        };
 
-       # Danga::Socket users, we queue up the read_enable callback to
-       # fire after pending writes are complete:
        my $buf = '';
        my $rd_hdr = sub {
                my $r = sysread($rpipe, $buf, 1024, length($buf));
@@ -102,7 +100,7 @@ sub psgi_return {
                my $filter = delete $env->{'qspawn.filter'};
                if (scalar(@$r) == 3) { # error
                        if ($async) {
-                               $async->close; # calls rpipe->close
+                               $async->close; # calls rpipe->close and $end
                        } else {
                                $rpipe->close;
                                $end->();