We don't cache positive DNS lokups. We shouldn't cache negative DNS lookups either

This commit is contained in:
Jesse Vincent 2010-11-21 02:10:59 +00:00
parent 6c3838909f
commit 43cef54ad6
1 changed files with 12 additions and 0 deletions

View File

@ -2147,6 +2147,18 @@ public class ImapStore extends Store
Log.w(K9.LOG_TAG, "Could not set DNS ttl to 0 for " + getLogId(), e);
}
try
{
Security.setProperty("networkaddress.cache.negative.ttl", "0");
}
catch (Exception e)
{
Log.w(K9.LOG_TAG, "Could not set DNS negative ttl to 0 for " + getLogId(), e);
}
try
{