Issue #5937 has been updated by naruse (Yui NARUSE).


igrigorik (Ilya Grigorik) wrote:
> 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. 
> 
> ex: https://github.com/igrigorik/spdy/blob/master/lib/spdy/compressor.rb

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?
----------------------------------------
Feature #5937: Zlib::Inflate#add_dictionary to pre-supply dictionaries for inflate streams
https://bugs.ruby-lang.org/issues/5937#change-26874

Author: drbrain (Eric Hodel)
Status: Closed
Priority: Normal
Assignee: 
Category: ext
Target version: 2.0.0


The attached patch allows Zlib::Inflate users to supply dictionaries ahead of time in order to avoid handling the Zlib::NeedDict exception.

Multiple dictionaries may be provided.  Zlib::Inflate will choose a matching dictionary based on the adler32 checksum of the provided dictionaries.


-- 
http://bugs.ruby-lang.org/