]> Sergey Matveev's repositories - public-inbox.git/commitdiff
git-http-backend: do not drop connection on successful finish
authorEric Wong <e@80x24.org>
Thu, 12 May 2016 09:32:39 +0000 (09:32 +0000)
committerEric Wong <e@80x24.org>
Thu, 12 May 2016 09:32:39 +0000 (09:32 +0000)
We can maintain the client HTTP connection if the process exited
with failure as long as we terminated our own response properly.

lib/PublicInbox/GitHTTPBackend.pm

index 020b08869699af7cf9301d27b1282795cfaefd99..abb70dfa667e44792cd5c22b769618437a7e9cd2 100644 (file)
@@ -259,10 +259,7 @@ sub serve_smart {
                if (defined $pid) {
                        my $e = $pid == waitpid($pid, 0) ?
                                $? : "PID:$pid still running?";
-                       if ($e) {
-                               err($env, "git http-backend ($git_dir): $e");
-                               drop_client($env);
-                       }
+                       err($env, "git http-backend ($git_dir): $e") if $e;
                }
                return unless $res;
                my $dumb = serve_dumb($cgi, $git, $path);