You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2019/12/14 07:20:54 UTC
[lucene-solr] branch jira/SOLR-13984 updated: SOLR-13984: don't
create surprises by caching DNS forever
This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch jira/SOLR-13984
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/jira/SOLR-13984 by this push:
new 60a9665 SOLR-13984: don't create surprises by caching DNS forever
60a9665 is described below
commit 60a9665ae5bfaf95e2755bbf777e75b34de64598
Author: Robert Muir <rm...@apache.org>
AuthorDate: Sat Dec 14 02:20:37 2019 -0500
SOLR-13984: don't create surprises by caching DNS forever
---
solr/bin/solr | 2 ++
1 file changed, 2 insertions(+)
diff --git a/solr/bin/solr b/solr/bin/solr
index c196850..df3c011 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -2070,9 +2070,11 @@ else
fi
# Enable java security manager (limiting filesystem access and other things)
+# Don't cache DNS lookups forever, set the value back to the original JDK default.
if [ "$SOLR_SECURITY_MANAGER_ENABLED" == "true" ]; then
SECURITY_MANAGER_OPTS=('-Djava.security.manager' \
"-Djava.security.policy=${SOLR_SERVER_DIR}/etc/security.policy" \
+ '-Dsun.net.inetaddr.ttl=30' \
'-Dsolr.internal.network.permission=*')
else
SECURITY_MANAGER_OPTS=()