зеркало из https://github.com/mono/mail-archives.git
134 строки
5.0 KiB
HTML
134 строки
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 75154][Nor] New - Socket.Connect does not report
|
|
error for IPAddress.Any remote endpoint
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075154%5D%5BNor%5D%20New%20-%20Socket.Connect%20does%20not%20report%0A%09error%20for%20IPAddress.Any%20remote%20endpoint&In-Reply-To=bug-75154%40chernobyl.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="030024.html">
|
|
<LINK REL="Next" HREF="030026.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 75154][Nor] New - Socket.Connect does not report
|
|
error for IPAddress.Any remote endpoint</H1>
|
|
<B>bugzilla-daemon at bugzilla.ximian.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075154%5D%5BNor%5D%20New%20-%20Socket.Connect%20does%20not%20report%0A%09error%20for%20IPAddress.Any%20remote%20endpoint&In-Reply-To=bug-75154%40chernobyl.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 75154][Nor] New - Socket.Connect does not report
|
|
error for IPAddress.Any remote endpoint">bugzilla-daemon at bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Sat Jun 4 09:40:17 EDT 2005</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="030024.html">[Mono-bugs] [Bug 65484][Nor] Changed - [PATCH] Mono.GetOptions does
|
|
not support quoted arguments in response file
|
|
</A></li>
|
|
<LI>Next message: <A HREF="030026.html">[Mono-bugs] [Bug 75155][Wis] New - Can't compile code with
|
|
delegates as function parameters
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#30025">[ date ]</a>
|
|
<a href="thread.html#30025">[ thread ]</a>
|
|
<a href="subject.html#30025">[ subject ]</a>
|
|
<a href="author.html#30025">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">gert.driesen at pandora.be.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75154">http://bugzilla.ximian.com/show_bug.cgi?id=75154</A>
|
|
|
|
--- shadow/75154 2005-06-04 09:40:17.000000000 -0400
|
|
+++ shadow/75154.tmp.4299 2005-06-04 09:40:17.000000000 -0400
|
|
@@ -0,0 +1,60 @@
|
|
+Bug#: 75154
|
|
+Product: Mono: Class Libraries
|
|
+Version: 1.1
|
|
+OS: GNU/Linux [Other]
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Normal
|
|
+Component: System
|
|
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">gert.driesen at pandora.be</A>
|
|
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: Socket.Connect does not report error for IPAddress.Any remote endpoint
|
|
+
|
|
+When a remote endpoint with IPAddress.Any is passed to Socket.Connect (),
|
|
+Mono should throw a SocketException with ErrorCode 10049 ("The requested
|
|
+address is not valid in this context").
|
|
+
|
|
+Note: this is working fine on Windows (both Mono and MS.NET)
|
|
+
|
|
+To reproduce this issue, compile and execute the following code snippet:
|
|
+
|
|
+using System;
|
|
+using System.Net;
|
|
+using System.Net.Sockets;
|
|
+
|
|
+public class EntryPoint {
|
|
+ public static void Main() {
|
|
+ IPEndPoint ep = new IPEndPoint(IPAddress.Any, 0);
|
|
+
|
|
+ try {
|
|
+ using (Socket conn1 = new Socket (AddressFamily.InterNetwork,
|
|
+ SocketType.Dgram, ProtocolType.Udp)) {
|
|
+ conn1.Connect (ep);
|
|
+ conn1.Close ();
|
|
+ }
|
|
+ Console.WriteLine("#1: Should've failed");
|
|
+ } catch (SocketException ex) {
|
|
+ if (ex.ErrorCode != 10049) {
|
|
+ Console.WriteLine ("#2: " +ex.ErrorCode + " -> " +
|
|
+ ex.ToString ());
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+}
|
|
+
|
|
+Actual result:
|
|
+
|
|
+#1: Should've failed
|
|
+
|
|
+Expected result:
|
|
+
|
|
+No output
|
|
+
|
|
+I'll commit a (ignored) unit test for this issue in SocketTest.cs later
|
|
+today.
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="030024.html">[Mono-bugs] [Bug 65484][Nor] Changed - [PATCH] Mono.GetOptions does
|
|
not support quoted arguments in response file
|
|
</A></li>
|
|
<LI>Next message: <A HREF="030026.html">[Mono-bugs] [Bug 75155][Wis] New - Can't compile code with
|
|
delegates as function parameters
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#30025">[ date ]</a>
|
|
<a href="thread.html#30025">[ thread ]</a>
|
|
<a href="subject.html#30025">[ subject ]</a>
|
|
<a href="author.html#30025">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|