From: Eric Wong Date: Thu, 12 May 2016 09:32:39 +0000 (+0000) Subject: git-http-backend: do not drop connection on successful finish X-Git-Tag: v1.0.0~552 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=a6e0d5634e3e8076745b47c32cd81e6a5a60bbc4 git-http-backend: do not drop connection on successful finish We can maintain the client HTTP connection if the process exited with failure as long as we terminated our own response properly. --- diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm index 020b0886..abb70dfa 100644 --- a/lib/PublicInbox/GitHTTPBackend.pm +++ b/lib/PublicInbox/GitHTTPBackend.pm @@ -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);