[Mono-bugs] [Bug 77637][Maj] New - AsyncCallBack failure

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 24 14:17:48 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 wolfy123 at gmail.com.

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

--- shadow/77637	2006-02-24 14:17:48.000000000 -0500
+++ shadow/77637.tmp.27443	2006-02-24 14:17:48.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 77637
+Product: Mono: Runtime
+Version: 1.1
+OS: other
+OS Details: FreeBSD 6.0 Release
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: wolfy123 at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AsyncCallBack failure
+
+Description of Problem:
+
+AsyncCallback within Socket.BeginConnect never gets called on freebsd.
+
+Tried on freebsd 5.4release and 6.0release
+
+Mono 1.1.13.2
+
+Steps to reproduce the problem:
+1. 
+
+using System;
+using System.Net;
+using System.Net.Sockets;
+
+namespace Callback_TestCase
+{
+    class callBackCase
+    {
+        static void Main(string[] args)
+        {
+            // High uptime www.google.com
+            string sourceIP = "72.14.207.99";
+
+            int sourcePort = 80;
+            callBackCase test = new callBackCase();
+            test.start(sourceIP, sourcePort);
+            while (true) { }
+        }
+
+        void start(string ip, int port)
+        {
+            IPEndPoint caseEP = new IPEndPoint(IPAddress.Parse(ip), port);
+            Socket testCase = new Socket(caseEP.Address.AddressFamily,
+SocketType.Stream, ProtocolType.Tcp);
+            testCase.BeginConnect(caseEP, new
+System.AsyncCallback(callBackTest), this);
+            Console.WriteLine("Beginning test");
+        }
+        void callBackTest(IAsyncResult test)
+        {
+            Console.WriteLine("Reached callback");
+
+        }
+    }
+}
+
+
+Actual Results:
+AsyncCallBack never reached
+
+Expected Results:
+AsyncCallBack to be reached
+
+How often does this happen? 
+Every time
+
+Additional Information:


More information about the mono-bugs mailing list