[Mono-bugs] [Bug 81353][Nor] New - UdpClient.JoinMulticastGroup with 2 parameters throws an exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 11 12:50:48 EDT 2007


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 jonathan.gagnon at croesus.com.

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

--- shadow/81353	2007-04-11 12:50:48.000000000 -0400
+++ shadow/81353.tmp.3035	2007-04-11 12:50:48.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 81353
+Product: Mono: Class Libraries
+Version: 1.2
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jonathan.gagnon at croesus.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: UdpClient.JoinMulticastGroup with 2 parameters throws an exception
+
+Description of Problem:
+
+When calling JoinMulticastGroup with a local ip address, I receive 
+a "SocketException: Address already in use" exception.
+
+
+Steps to reproduce the problem:
+
+UdpClient udpClient = new UdpClient(9001);
+udpClient.JoinMulticastGroup(IPAddress.Parse("224.0.0.2"), IPAddress.Any);
+
+Actual Results:
+
+An exception is throw.
+
+Expected Results:
+
+No exception.
+
+How often does this happen? 
+
+All the time.
+
+Additional Information:
+
+After looking at the code, I noticed that the SetSocketOption is getting 
+called twice, which triggers the exception.  By commenting out the 
+following line (line 298 in UdpClient.cs) :
+
+JoinMulticastGroup (multicastAddr);
+
+I got rid of the exception.


More information about the mono-bugs mailing list