[Mono-bugs] [Bug 38662][Nor] New - Setting the recieve timeout of a socket got from a TcpListener throws a socket exception.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 25 Feb 2003 05:39: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 matthias204@mac.com.

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

--- shadow/38662	Tue Feb 25 05:39:05 2003
+++ shadow/38662.tmp.14117	Tue Feb 25 05:39:05 2003
@@ -0,0 +1,53 @@
+Bug#: 38662
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo Linux 1.4rc2 with mono-0.20
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: matthias204@mac.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Setting the recieve timeout of a socket got from a TcpListener throws a socket exception.
+
+Description of Problem:
+Setting the recieve timeout of a socket got from a TcpListener throws a
+socket exception.
+
+Steps to reproduce the problem:
+<code>
+Socket socket = this.tcpListener.AcceptSocket();
+socket.SetSocketOption( SocketOptionLevel.Socket ,
+SocketOptionName.ReceiveTimeout, 3*60*1000 );
+</code>
+This is simplified code cause the actual code contains much overhead
+(threading).
+
+Actual Results:
+System.Net.Sockets.SocketException: Invalid arguments
+in (unmanaged) mono(mono_raise_exception+0x1f) [0x80c6c14]
+in (unmanaged)
+mono(ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal+0x2c1)
+[0x80e238e]
+in [0x00070] (at
+/home/matthias/Development/netftp/libftp/connection.cs:174) 00
+LibFtp.Connection.ControlConnection:Run (System.Net.Sockets.NetworkStream)
+in [0x00011] (at /home/matthias/Development/netftp/libftp/net.cs:235) 00
+LibFtp.Net.Connection:PRun ()
+
+
+Expected Results:
+should set the recieve timeout and not throw an exception
+
+How often does this happen? 
+everytime
+
+Additional Information:
+This is from a project developed with windows. I am currently trying to
+make it run with mono.