[Mono-bugs] [Bug 609381] New: IpcChannelHelper exception thrown when 1+ MB is sent through IPCChannel

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 27 05:52:14 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=609381

http://bugzilla.novell.com/show_bug.cgi?id=609381#c0


           Summary: IpcChannelHelper exception thrown when 1+ MB is sent
                    through IPCChannel
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: 64bit
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: miha96ac at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3

When a IpcServerChannel returns 1+ MB a
System.Runtime.Serialization.SerializationException is thrown with the message:

Binary stream '0' does not contain a valid BinaryHeader. Possible causes are
invalid stream or object version change between serialization and
deserialization. 


Modifying the size constant in the method Copy(Stream from, Stream to) in
IpcChannelHelper.cs to something larger than 1 MB temporarely fixes the problem
(untill an even larger message is sent through)

Reproducible: Always

Steps to Reproduce:
1. Create a client/server system that interacts through a IpcChannel
2. Create a serializable object that serializes to more than 1024*1024 bytes
3. Let the server return the object the IpcChannel (=client calls a method on
the server that returns the object)
Actual Results:  
System.Runtime.Serialization.SerializationException: Binary stream '0' does not
contain a valid BinaryHeader. Possible causes are invalid stream or object
version change between serialization and deserialization.


Expected Results:  
A successfull transfer of the data

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list