diff options
author | Eric Wong <e@80x24.org> | 2016-05-12 09:32:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-12 09:32:39 +0000 |
commit | a6e0d5634e3e8076745b47c32cd81e6a5a60bbc4 (patch) | |
tree | 1d4f27a6ec487b3c8ab2940e5e87a2529d101094 | |
parent | 8dfd3da2cb7967fcb52dcd816a6e52d143684061 (diff) | |
download | public-inbox-a6e0d5634e3e8076745b47c32cd81e6a5a60bbc4.tar.gz |
We can maintain the client HTTP connection if the process exited with failure as long as we terminated our own response properly.
-rw-r--r-- | lib/PublicInbox/GitHTTPBackend.pm | 5 |
1 files changed, 1 insertions, 4 deletions
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); |