"drbrain (Eric Hodel)" <drbrain / segment7.net> wrote:
> I don't see a way to safely interrupt deflate() or inflate() so the
> unblocking function is empty.

I think you can safely specify NULL for the ubf in this case instead of
using an empty function.

> This patch should allow use of output buffer sizes larger than 16KB.
> I suspect 16KB was chosen to allow reasonable context-switching time
> for ruby 1.8 and earlier.  A larger buffer size would reduce GVL
> contention when processing large streams.

Cool!