From ee0847d316d260f42914103359a9cac3c2d7b752 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 28 Jun 2020 15:52:47 +0530 Subject: [PATCH] timeout values updated as per DnsClient implementation changes. --- DnsServerCore/Dns/Zones/PrimaryZone.cs | 2 +- DnsServerCore/Dns/Zones/SecondaryZone.cs | 4 ++-- DnsServerCore/Dns/Zones/StubZone.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DnsServerCore/Dns/Zones/PrimaryZone.cs b/DnsServerCore/Dns/Zones/PrimaryZone.cs index 5725e501..58e3d531 100644 --- a/DnsServerCore/Dns/Zones/PrimaryZone.cs +++ b/DnsServerCore/Dns/Zones/PrimaryZone.cs @@ -36,7 +36,7 @@ namespace DnsServerCore.Dns.Zones const int NOTIFY_TIMER_INTERVAL = 10000; readonly List _notifyList = new List(); - const int NOTIFY_TIMEOUT = 60000; + const int NOTIFY_TIMEOUT = 10000; const int NOTIFY_RETRIES = 5; #endregion diff --git a/DnsServerCore/Dns/Zones/SecondaryZone.cs b/DnsServerCore/Dns/Zones/SecondaryZone.cs index 7391dca5..adb2dfdc 100644 --- a/DnsServerCore/Dns/Zones/SecondaryZone.cs +++ b/DnsServerCore/Dns/Zones/SecondaryZone.cs @@ -35,8 +35,8 @@ namespace DnsServerCore.Dns.Zones readonly Timer _refreshTimer; const int REFRESH_TIMER_INTERVAL = 10000; - const int REFRESH_SOA_TIMEOUT = 60000; - const int REFRESH_AXFR_TIMEOUT = 1500000; //5 mins per 5 retries + const int REFRESH_SOA_TIMEOUT = 10000; + const int REFRESH_AXFR_TIMEOUT = 300000; const int REFRESH_RETRIES = 5; DateTime _expiry; diff --git a/DnsServerCore/Dns/Zones/StubZone.cs b/DnsServerCore/Dns/Zones/StubZone.cs index 3978e6a5..973bb49e 100644 --- a/DnsServerCore/Dns/Zones/StubZone.cs +++ b/DnsServerCore/Dns/Zones/StubZone.cs @@ -35,7 +35,7 @@ namespace DnsServerCore.Dns.Zones readonly Timer _refreshTimer; const int REFRESH_TIMER_INTERVAL = 10000; - const int REFRESH_TIMEOUT = 60000; + const int REFRESH_TIMEOUT = 10000; const int REFRESH_RETRIES = 5; DateTime _expiry;