[Mono-bugs] [Bug 38186][Wis] Changed - Problem using Receive method of a Socket
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 email@example.com.
--- 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 firstname.lastname@example.org 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)