[Mono-bugs] [Bug 35371][Nor] New - Setting ReceiveTimeout causes exception

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 Dec 2002 13:10:36 -0000


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 richard@phpguru.org.

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

--- shadow/35371	Tue Dec 10 08:10:36 2002
+++ shadow/35371.tmp.17488	Tue Dec 10 08:10:36 2002
@@ -0,0 +1,62 @@
+Bug#: 35371
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 7.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: richard@phpguru.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Setting ReceiveTimeout causes exception
+
+Description of Problem:
+
+Trying to set the ReceiveTimeout property throws a SocketException.
+
+Steps to reproduce the problem:
+
+With a TcpClient object:
+
+try {
+  myTcpClient.ReceiveTimeout = 5000;
+} catch (Exception e) {
+ ...
+}
+
+Or with a Socket object:
+
+try {
+  mySocket.SetSocketOption(SocketOptionLevel.Socket,
+                           SocketOptionName.ReceiveTimeout,
+                           5000);
+} catch (Exception e) {
+ ...
+}
+
+Stracktrace:
+System.Net.Sockets.SocketException: Invalid arguments
+in (unmanaged) mono(mono_raise_exception+0x20) [0x80be670]
+in (unmanaged) mono
+(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal+0x2c6) 
+[0x80d7caa]
+in [0x00058] (at /home/richard/psm/Heyes.Email.Smtp.cs:257) 00 
+Heyes.Email.Smtp:Connect ()
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen? 
+
+Every time.
+
+Additional Information: