From a2b413c1c0bea044d0c82ac3e1a99de5036761d1 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 30 Apr 2008 14:16:38 +0000 Subject: QPID-988 and QPID-989: fixes to framing for final 0-10 spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@652386 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/codec010.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/qpid/codec010.py') diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py index 0ba3341665..1c76666de1 100644 --- a/python/qpid/codec010.py +++ b/python/qpid/codec010.py @@ -156,6 +156,7 @@ class Codec(Packer): def write_map(self, m): sc = StringCodec(self.spec) + sc.write_uint32(len(m)) for k, v in m.items(): type = self.spec.encoding(v.__class__) if type == None: @@ -163,10 +164,10 @@ class Codec(Packer): sc.write_str8(k) sc.write_uint8(type.code) type.encode(sc, v) - # XXX: need to put in count when CPP supports it self.write_vbin32(sc.encoded) def read_map(self): sc = StringCodec(self.spec, self.read_vbin32()) + count = sc.read_uint32() result = {} while sc.encoded: k = sc.read_str8() -- cgit v1.2.1