Skip to content
Permalink
Browse files

MP1-4967 increase AsyncDNSReverseLookup timeout to 1500ms

  • Loading branch information...
Azzuro committed Jun 25, 2019
1 parent 3de4e63 commit 9af5df10b5219cd7d6b07fbb83ad5dfed80f7fe4
Showing with 2 additions and 2 deletions.
  1. +2 −2 mediaportal/Core/Util/UNCTools.cs
@@ -514,12 +514,12 @@ private static IPAddress AsyncDNSReverseLookup(string strHost_or_IP)
{
//we have no IP address -> make an async dns reverse lookup

//Start async dns reverse lookup
//Start async dns reverse lookup - MP1-4967 TimeOut increased to 1500ms
try
{
var t1 = Task.Factory.StartNew(_ => DnsReverseLookup(strHost_or_IP),
TaskCreationOptions.AttachedToParent)
.TimeoutAfter(1000)
.TimeoutAfter(1500)
.ContinueWith(antecedent =>
{
if (!(antecedent.IsCanceled || antecedent.IsFaulted))

0 comments on commit 9af5df1

Please sign in to comment.
You can’t perform that action at this time.