[Mono-bugs] [Bug 72240][Wis] New - Incorrect behaviour when the network is overloaded.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 5 Feb 2005 06:35:35 -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 vguzev@yandex.ru.


--- shadow/72240	2005-02-05 06:35:35.000000000 -0500
+++ shadow/72240.tmp.8475	2005-02-05 06:35:35.000000000 -0500
@@ -0,0 +1,80 @@
+Bug#: 72240
+Product: Mono: Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vguzev@yandex.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Incorrect behaviour when the network is overloaded.
+Description of Problem:
+Incorrect behaviour when the network is overloaded.
+In attachment you can see 4 files: client.cs, server.cs, Serialization.cs 
+and TCP.cs. 
+Serialization.cs - is just a wrapper for BinarySerializer.
+TCP.cs contains the methods for sending and receiving data using TCP 
+What does this program do: client generates (in parallel, in different 
+threads) arrays of System.Drawing.Color, then client assigns to all items 
+Color.White color, then serializes these arrays and send to server.
+Server should accept these arrays and print the first item of each array 
+Steps to reproduce the problem:
+1. mcs /r:System.Drawing.dll client.cs Serialization.cs TCP.cs
+2. mcs /r:System.Drawing.dll server.cs Serialization.cs TCP.cs
+3. On node 1: mono server.exe
+4. On node 2: mono client.exe <name_or_ip_of_node1> 10000
+Actual Results:
+On server side I get a lot of exceptions like this:
+Unhandled Exception: System.Runtime.Serialization.SerializationException: 
+serializationStream supports seeking, but its length is 0
+in <0x000be> 
+ (System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
+in <0x00017> 
+ (System.IO.Stream)
+in <0x0002d> MCSharp.Serialization:Deserialize (System.IO.Stream)
+in <0x0006e> Servant:ServeConnection ()
+in <0x00053> (wrapper delegate-invoke) 
+System.MulticastDelegate:invoke_void ()
+On client side sometimes it hangs on, and sometimes it halts on 
+Segmentation fault
+Expected Results:
+On MS.Net it works perfectly even on slow machines.
+How often does this happen? 
+Almost always
+Additional Information:
+[vadim@skif testload]$ uname -a
+Linux skif 2.4.25 #2 SMP Fri Apr 23 14:03:00 MSD 2004 i686 athlon i386 
+[vadim@node-11 testload]$ uname -a
+Linux node-11 2.4.25 #2 SMP Fri Apr 23 15:33:54 MSD 2004 i686 athlon i386 
+[vadim@skif testload]$ mono --version
+Mono JIT compiler version 1.0.5, (C) 2002-2004 Novell, Inc and 
+Contributors. www.go-mono.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: ICU
+Best regards,
+Vadim B. Guzev