[Mono-bugs] [Bug 38136][Nor] New - System.Net.Sockets.Socket exception when connecting
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 14 Feb 2003 21:04:05 -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 alp@atoker.com.
http://bugzilla.ximian.com/show_bug.cgi?id=38136
--- shadow/38136 Fri Feb 14 21:04:05 2003
+++ shadow/38136.tmp.29756 Fri Feb 14 21:04:05 2003
@@ -0,0 +1,71 @@
+Bug#: 38136
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: alp@atoker.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: System.Net.Sockets.Socket exception when connecting
+
+Jabber-Net 0.06, a C# instant messaging client library, triggers this
+issue: On running a simple test case which uses Jabber-Net to connect to a
+Jabber server, the mono runtime triggers this exception:
+
+
+[alp@star jabber-net]$ mono jabbertest.exe
+
+Unhandled Exception: System.Net.Sockets.SocketException: Operation in
+progressin (unmanaged) mono(mono_raise_exception+0x20) [0x80bfde0]
+in (unmanaged)
+mono(ves_icall_System_Net_Sockets_Socket_Connect_internal+0x72) [0x80d8d04]
+in <0x0005a> 00 System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
+in <0x00036> 00 .Worker:Connect ()
+in <0x0005b> 01 System.MulticastDelegate:invoke_void ()
+
+Miguel believes the socket has been placed in a non-blocking state and we
+are getting a short read.
+
+It's a large codebase so whittling a test case would be non-trivial. I'm
+hoping this bug will provide someone more familiar with the Net namespace
+enough information to track down the bug.
+
+Download Jabber-Net-0.06.zip from
+http://www.jabberstudio.org/projects/jabber-net/releases/
+
+To compile Jabber.Net:
+mcs --target library -recurse:bedrock/*.cs -recurse:jabber/*.cs -o jabber.dll
+
+The test case:
+
+using jabber;
+using jabber.client;
+using jabber.protocol.client;
+
+
+class jabtest
+{
+ static JabberClient jc;
+
+
+ static void Main ()
+ {
+ jc = new JabberClient ();
+ jc.User = "testuser";
+ jc.Password = "testpassword";
+ jc.Server = "jabber.org";
+ jc.Connect ();
+
+ }
+}
+
+
+To compile the test case:
+mcs jabbertest.cs -r jabber.dll