Right, got it.

Got an initial impl working here:
https://github.com/apache/incubator-openwhisk/pull/3812/files#diff-3fca67626fe5f92ce431902dd2318a10R170

So now in that PR, the entity is either consumed via Unmarshal().to[String], 
when within the allowed response size, or else via the truncated() function, 
when content length is too large.

Thanks
Tyson

On Jul 14, 2018, at 5:04 AM, Markus Thoemmes 
<[email protected]<mailto:[email protected]>> wrote:

Hi Tyson,

I think that is (kinda) expected. The ByteStrings are coming through in chunks, 
usually in sizes like 4k or 8k depending on the underlying connection. You 
won't know beforehand how big these chunks are.

Have you tried with a big response (like 1M?). The chunk should not be 1M in 
size, in theory at least.

Cheers,
Markus


Reply via email to