[Seaside] in Pharo does GRCountingStream need to be used in WAComboResponse?
Sven Van Caekenberghe
sven at stfx.eu
Tue Jun 14 08:20:47 UTC 2022
As far as I understand it, chunks are counted in byte sizes. Chunks should be byte arrays. Encoding happens on another level.
> On 13 Jun 2022, at 23:30, PAUL DEBRUICKER <pdebruic at gmail.com> wrote:
>
> I've run into an issue with WAComboResponse where I get a different value for the chunk size vs the length of the contents in Pharo. As far as I can tell, when the issue happens, the count is lower than the length of the contents.
>
> So the chunk is malformed with a reported size of 10922 and a content size of 10948, which makes the browser close the connection.
>
> `WAComboResponse>>#nextChunk:put:` seems to only be dealing with ByteArrays and [chunked encoding counts the octets](https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Format)
>
> If I change from using the reported `count` inst var to the `data size` value then my issue goes away.
>
> Has anyone ever seen that before? Am I misunderstanding how it works?
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list