On 07/17/2015 04:07 AM, Daniel-Constantin Mierla wrote:
- in write_function(), it seems that for successive calls of the
function one extra byte is added to the size. It is intended for keeping ending '\0', but should be enough only once. Could be harmless (few extra bytes allocated, when not really needed), but is important to know that actual value is up to stream.pos+1 (to include the '\0'), not to stream.curr_size.
I believe that's an oversight on my part, as I was the one who made major changes to that function to support large responses. I will correct and commit.