[Mono-bugs] [Bug 80211][Wis] New - SocketOptionName.ReuseAddress doesn't work on Linux
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Dec 9 23:03:05 EST 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 cikki.mukki at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80211
--- shadow/80211 2006-12-09 23:03:05.000000000 -0500
+++ shadow/80211.tmp.25451 2006-12-09 23:03:05.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 80211
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity: 008 One day
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: Cikki.Mukki at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SocketOptionName.ReuseAddress doesn't work on Linux
+
+SetSocketOption with SocketOptionName.ReuseAddress doesn't work on Linux
+(both Fedora and Ubuntu 6.10), but the same code works fine on Windows
+under mono.
+
+I am writing a piece of code to do TCP hole punching thru' the NAT, which
+requires that a process both listens on and connects from the same local port.
+
+Here is code to reproduce the issue. This code works fine on Windows under
+Mono, but not on Linux.
+
+
+Ubuntu/Fedora output:
+======================
+Listening on 4281..
+Got socket exception! System.Net.Sockets.SocketException: Address already
+in use
+ at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000]
+ at MonoBug.Program.Main (System.String[] args) [0x00000]
+
+Windows output:
+==============
+
+Listening on 2917..
+Connect done.
+
+
+How often does this happen?
+All the time.
+
+Additional Information:
+I need this fixed urgently for my project, so a quick response/patch, or
+suggestions how/where to fix/patch is appreciated.
More information about the mono-bugs
mailing list