Undocumented windowsBits feature of Zlib::Infrate/Deflate
---------------------------------------------------------

                 Key: JRUBY-6017
                 URL: https://jira.codehaus.org/browse/JRUBY-6017
             Project: JRuby
          Issue Type: Task
          Components: Extensions
    Affects Versions: JRuby 1.6.4
         Environment: any
            Reporter: Hiroshi Nakamura
            Assignee: Hiroshi Nakamura


Zlib::Inflate accepts MAX_WBITS + 16 (means gzip inflation) and MAX_WBITS + 32 
(automatic detection of zip/gzip) as a windowBits value. And Zlib::Deflate 
accepts MAX_WBITS + 16 (means gzip deflation).

These features are from zlib 1.2.1. CRuby just passes windowBits value to zlib 
(inflateInit2 and deflateInit2) so it supports the extra features when 
underlying zlib supports it. You cannot use these features when you compile 
CRuby with zlib 1.1.X.

I heard that Rack started using this feature. JRuby should also support it even 
though those features are undocumented at CRuby level.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to