diff options
| author | Arnaud Simon <arnaudsimon@apache.org> | 2008-09-16 07:54:12 +0000 |
|---|---|---|
| committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-09-16 07:54:12 +0000 |
| commit | 2f43007baa7e97086ddb227ddc27b4b4b26bf53c (patch) | |
| tree | 00b3f14d34f3d382559332270a069ef983ac1b84 /dotnet/client-010/client | |
| parent | 4325bf519604230227647c229931049fc2d89ab9 (diff) | |
| download | qpid-python-2f43007baa7e97086ddb227ddc27b4b4b26bf53c.tar.gz | |
qpid-1277: fixed small messages issue found when testing wcf
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@695758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/client-010/client')
| -rw-r--r-- | dotnet/client-010/client/transport/network/Assembler.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dotnet/client-010/client/transport/network/Assembler.cs b/dotnet/client-010/client/transport/network/Assembler.cs index 65d9061e0a..53a38eff32 100644 --- a/dotnet/client-010/client/transport/network/Assembler.cs +++ b/dotnet/client-010/client/transport/network/Assembler.cs @@ -127,9 +127,13 @@ namespace org.apache.qpid.transport.network {
MemoryStream segment;
if (frame.isFirstFrame() && frame.isLastFrame())
- {
- segment = frame.Body;
- assemble(frame, segment);
+ {
+ byte[] tmp = new byte[frame.BodySize];
+ frame.Body.Read(tmp, 0, tmp.Length);
+ segment = new MemoryStream();
+ BinaryWriter w = new BinaryWriter(segment);
+ w.Write(tmp);
+ assemble(frame, new MemoryStream(tmp));
}
else
{
|
