about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-09-12 23:16:52 +0000
committerEric Wong <e@80x24.org>2019-09-14 09:24:38 +0000
commit500a3dad334601d928e20dd9d764fb117f65103d (patch)
treea52e59b6c7a402a65d7388bd80dc03c47e4f00c3
parent25c41ff78d0a65029e410b5478430b1061df1dae (diff)
downloadpublic-inbox-500a3dad334601d928e20dd9d764fb117f65103d.tar.gz
REMOTE_HOST is not set by us (it is the reverse DNS name) of
REMOTE_ADDR, and there's few better ways to kill HTTP server
performance than to use standard name resolution APIs like
getnameinfo(3).
-rw-r--r--lib/PublicInbox/GitHTTPBackend.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitHTTPBackend.pm b/lib/PublicInbox/GitHTTPBackend.pm
index a8337035..c9a7cff8 100644
--- a/lib/PublicInbox/GitHTTPBackend.pm
+++ b/lib/PublicInbox/GitHTTPBackend.pm
@@ -219,7 +219,7 @@ sub input_prepare {
         if (defined $fd && $fd >= 0) {
                 return { 0 => $fd };
         }
-        my $id = "git-http.input.$env->{REMOTE_HOST}:$env->{REMOTE_PORT}";
+        my $id = "git-http.input.$env->{REMOTE_ADDR}:$env->{REMOTE_PORT}";
         my $in = tmpfile($id);
         unless (defined $in) {
                 err($env, "could not open temporary file: $!");