This issue was solved with changeset r34553.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
ext/zlib/zlib.c (rb_inflate_add_dictionary): Added
Zlib::Inflate#add_dictionary to allow users to pre-specify
for using during #inflate. [ruby-trunk - Feature #5937]
What are the odds of having this be backported to 1.9.x? We need custom dictionary support to support SPDY without relying on FFI or other native extensions.
What are the odds of having this be backported to 1.9.x? We need custom dictionary support to support SPDY without relying on FFI or other native extensions.
You may know, in principle backporting is for bug fixes.
And even if 1.9.3 backport this, 1.9.2 and 1.8.x still needs ffi.
This means your pain won't decrease, will it?
I think #5929 should be backported instead. While #5937 makes working with custom dictionaries easier, #5929 fixes the current API (#set_dictionary) to be fully usable.
@naruse (Yui NARUSE): as Eric pointed out in his original ticket (#5929), I do believe this is a bug, as the current API advertises that it can set and use the dictionary, but that is not the case.