Closed enrikb closed 1 year ago
Do you have a reproducible test case with an article? Any article of 600 bytes (uncompressed) for instance?
Hi Julien, sorry for not providing more info / repro in the first place. Was just too late in the evening ... as you received some updates out-of-band, I hope that's OK now. Meanwhile I added #270 as a proposed fix. Any feedback welcome!
Hi Enrik, No problem! It's very kind of you to provide a fix. Greatly appreciated :)
I've reproduced the issue with the provided example, and your fix indeed solves it. I'll commit it soon.
I found the following scenario when POSTing an article with COMPRESS DEFLATE enabled, without TLS:
This can be worked around by calling line_doread() before the select() call if (and only if) more data will be produced by the first inflate() call in line_doread(). But ensuring this might be tricky considering all possible corner cases from zlib.