[Mono-bugs] [Bug 38186][Wis] Changed - Problem using Receive method of a Socket
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 17 Feb 2003 08:28:18 -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 dick@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=38186
--- shadow/38186 Mon Feb 17 08:02:15 2003
+++ shadow/38186.tmp.28529 Mon Feb 17 08:28:17 2003
@@ -96,6 +96,21 @@
>>Try putting some delay between the two and see it
>>break on the ms runtime too.
I think this is not a solution because code below works as expected in
MS .Net it raise exception but wait some seconds until raise it, and
exception raised in MS .net is of different type as mono exception.
+
+------- Additional Comments From dick@ximian.com 2003-02-17 08:28 -------
+I used your example code with it talking to netcat on a local machine,
+added some delay after the Connect so I could send some data before
+the first socket.Available, and another delay before the Recieve so I
+could send some more. This is the result on the ms runtime:
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Specified
+argument was out of the range of valid values.
+Parameter name: size
+ at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset,
+Int32 size, SocketFlags socketFlags)
+ at SocketTest.Test.Main(String[] args)
+(null)
+