[Mono-list] System.Net.Dns.Resolve() and Exceptions
Jonathan Stowe
gellyfish@gellyfish.com
Tue, 2 Apr 2002 07:50:21 +0100 (BST)
This goes into an endless loop:
using System;
using System.Net;
class ResolveTest
{
public static void Main()
{
try
{
Dns.Resolve("Somenon-existent.host");
}
catch
{
}
}
}
With --trace it can be seen it is GetHostByName that is being repeatedly
called.
It looks like the try/catch is interfering with the implementation of
Resolve.
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|