[Mono-bugs] [Bug 79211][Nor] Changed - Hostname Resolution Broken in 1.1.17

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 5 16:21:55 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla at patearl.net.

http://bugzilla.ximian.com/show_bug.cgi?id=79211

--- shadow/79211	2006-08-30 18:32:08.000000000 -0400
+++ shadow/79211.tmp.31820	2006-09-05 16:21:55.000000000 -0400
@@ -51,6 +51,23 @@
 Check your net config.
 
 Priority changed, see 
 
 http://bugzilla.ximian.com/bug_status.html#priority
 
+
+------- Additional Comments From bugzilla at patearl.net  2006-09-05 16:21 -------
+The problem is that ipv4Supported and ipv6Supported are both 0 when
+get_family_hint() runs in mono/metadata/socket-io.c.  This makes it
+return PF_INET6 for the hint, where the address type from the name
+resolution is actually PF_INET.
+
+Further investigation reveals that the little check for the creation
+of an IPv4 socket in Socket.cs does with no exception before the
+family hint is checked.  It seems that the value should be 1.
+
+Adding code that runs the CheckProtocolSupport() function right before
+GetHostByName_internal() did not help.
+
+Is it possible there are two instances of the same static variable? 
+Perhaps the mono internal code to look up the values of the static
+variables is broken?


More information about the mono-bugs mailing list