[Mono-bugs] [Bug 75037][Wis] New - Unable to bind a socket to a port

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 24 23:23:26 EDT 2005


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 tjfontaine at gmail.com.

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

--- shadow/75037	2005-05-24 23:23:26.000000000 -0400
+++ shadow/75037.tmp.21049	2005-05-24 23:23:26.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 75037
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Linux server1 2.6.10-1-686 #1 Fri Mar 11 03:55:46 EST 2005 i686 GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: tjfontaine at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Unable to bind a socket to a port
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+unable to bind a socket to a port
+
+Steps to reproduce the problem:
+1. compile the following program
+using System;
+using System.Net;
+using System.Net.Sockets;
+
+namespace testserver
+{
+	public class test
+	{
+		[STAThread]
+		public static void Main(string[] args)
+		{
+			Socket m_listen;
+			m_listen = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
+ProtocolType.Tcp);
+			m_listen.Bind(new IPEndPoint(IPAddress.Any, 10300));
+			m_listen.Listen(1);
+			while(true){}
+			
+		}
+	}
+}
+2. run it
+3. either telnet localhost 10300 or netstat -aln | grep 10300
+
+Actual Results:
+the port is never opened and doesn't accept connections
+
+Expected Results:
+the port will be opened and accept connections
+
+How often does this happen? 
+Everytime
+
+Additional Information:
+Works on MS.NET and mono <= 1.1.3
+(initially reported on irc by schaf)


More information about the mono-bugs mailing list