mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
We don't cache positive DNS lokups. We shouldn't cache negative DNS lookups either
This commit is contained in:
parent
6c3838909f
commit
43cef54ad6
@ -2147,6 +2147,18 @@ public class ImapStore extends Store
|
|||||||
Log.w(K9.LOG_TAG, "Could not set DNS ttl to 0 for " + getLogId(), e);
|
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
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user