Why does not serialize each AmpBox separately?<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 12:45 AM, <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 03:54 pm, <a href="mailto:vlad.shevchenko@gmail.com">vlad.shevchenko@gmail.com</a> wrote:<br>
>Hi all!<br>
><br>
> Stuck with AmpList again :( Im trying to send/retrieve data much<br>
>larger<br>
>then 64K and choose AmpList cause it "Convert a list of dictionaries<br>
>into a<br>
>list of AMP boxes".<br>
><br>
>My original data looks like a long list of dicts [ {1}, {2}, ..., {x}<br>
>].<br>
>I convert it to [<br>
> {'data': 'json encoded 1,2 dicts'},<br>
> {'data': 'json encoded 3,4 dicts}',<br>
> ...<br>
>] hoping EACH element in converted list will be converted to AmpBox and<br>
>retriever on wire.<br>
><br>
>However, still got TooLong exception on AmpBox.serialize(). AmpBox<br>
>trying to<br>
>serialize all my converted list but not each dict in it separately.<br>
><br>
>Does this behavior ok, or this is a bug?<br>
<br>
</div></div>When you use an AmpList, the value is still serialized as a single key's<br>
value string, so the 64k limit still applies, even if it has sub-<br>
structures of its own, none of which exceed the limit.<br>
<br>
At the Twisted sprint hosted by Flumotion last weekend, some people were<br>
working on adding real streaming support to AMP. I think most of the<br>
progress made was in understanding how the implementation should work,<br>
though.<br>
<br>
The associated ticket is #2529.<br>
><br>
>--<br>
>WBR, Vlad<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>WBR, Vlad Shevchenko<br><br>