[Mono-bugs] [Bug 53992][Wis] New - SocketException not normally thrown for reusing server socket address
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 6 Feb 2004 16:09:20 -0500 (EST)
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 liyul@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53992
--- shadow/53992 2004-02-06 16:09:19.000000000 -0500
+++ shadow/53992.tmp.11073 2004-02-06 16:09:19.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 53992
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: liyul@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: SocketException not normally thrown for reusing server socket address
+
+For windows platform, when the same socket address (protocol/network
+address/port) was in use, mono binds happily and took over the port. The
+default behavior should be throws System.Net.Sockets.SocketException:
+"Only one usage of each socket address (protocol/network address/port)\r\n
+is normally permitted"
+
+Example:
+
+Microsoft .net 1.1 implementation throws System.Net.Sockets.SocketException
+E:\work\mono-0.30\xsp\server\bin\Debug>xsp --port 80
+Listening on port: 80
+Listening on address: 0.0.0.0
+Root directory: E:\work\mono-0.30\xsp\server\bin\Debug
+Error: Only one usage of each socket address (protocol/network address/port)
+is normally permitted
+
+mono implementation
+E:\work\mono-0.30\xsp\server\bin\Debug>mono xsp.exe --port 80
+Listening on port: 80
+Listening on address: 0.0.0.0
+Root directory: E:\work\mono-0.30\xsp\server\bin\Debug
+Hit Return to stop the server.
+
+Bot implementations indicated the socket address is
+(InterNetwork/0.0.0.0/80) and this port was in use by IIS already at the time.