* [PATCH] git-http-backend: do not drop connection on successful finish
@ 2016-05-12 9:52 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-05-12 9:52 UTC (permalink / raw)
To: meta
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(-)
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index 020b088..abb70df 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);
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-05-12 9:52 [PATCH] import: normalize body by stripping trailing newlines Eric Wong
2016-05-12 9:52 7% ` [PATCH] git-http-backend: do not drop connection on successful finish Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).