"naruse (Yui NARUSE)" <naruse / airemix.jp> wrote:
> How about adding a new attribute which limits the size of reading body?

Maybe.  I'm not familiar with zlib internals, but does it need to
allocate that memory internally even if it's not returned to the
callers?

Perhaps adding an attribute to toggle transparent inflate and
documenting it with a warning about possible memory usage is
the way to go.