From a6e0d5634e3e8076745b47c32cd81e6a5a60bbc4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 12 May 2016 09:32:39 +0000 Subject: 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. --- lib/PublicInbox/GitHTTPBackend.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3-24-ge0c7