Prechádzať zdrojové kódy

2009-06-29 Atsushi Enomoto <[email protected]>

	* TcpDuplexSessionChannel.cs : do not output all (stored) writer
	  session strings but output only those new ones in current message.
	  This fixes inconsistent body output in repetitive use of sender.


svn path=/trunk/mcs/; revision=137060
Atsushi Eno 16 rokov pred
rodič
commit
04bfdda5dd

+ 6 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog

@@ -1,3 +1,9 @@
+2009-06-29  Atsushi Enomoto  <[email protected]>
+
+	* TcpDuplexSessionChannel.cs : do not output all (stored) writer
+	  session strings but output only those new ones in current message.
+	  This fixes inconsistent body output in repetitive use of sender.
+
 2009-06-26  Atsushi Enomoto  <[email protected]>
 
 	* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive

+ 2 - 2
mcs/class/System.ServiceModel/System.ServiceModel.Channels/TcpDuplexSessionChannel.cs

@@ -545,8 +545,8 @@ namespace System.ServiceModel.Channels
 			// dictionary
 			MemoryStream msd = new MemoryStream ();
 			BinaryWriter dw = new BinaryWriter (msd);
-			foreach (var ds in session.List)
-				dw.Write (ds.Value);
+			for (int i = writer_session_count; i < session.List.Count; i++)
+				dw.Write (session.List [i].Value);
 			dw.Flush ();
 
 			int length = (int) (msd.Position + ms.Position);