compression in kio_http
Kevin Krammer
kevin.krammer at gmx.at
Sun Dec 4 23:12:58 GMT 2005
On Sunday 04 December 2005 23:46, Tommi Mäkitalo wrote:
> Am Sonntag 04 Dezember 2005 21:57 schrieb Kevin Krammer:
> > On Sunday 04 December 2005 19:24, Tommi Mäkitalo wrote:
> > > Am Sonntag 04 Dezember 2005 16:08 schrieb Kevin Krammer:
> > > > On Sunday 04 December 2005 15:34, Tommi Mäkitalo wrote:
> > > > > Hi,
> > >
> > > ...
> > >
> > > > Do you have a test URL where you send such data?
> > >
> > > I set up a server here:
> > >
> > > http://hal.circle-of-art.de:8000/hello
> >
> > I tried to debug a little so the folks at kfm-devel can save some time:
> >
> > kdelibs/kio/httpfilter/httpfilter.cc
> >
> > HTTPFilterGZip::slotInput gets called with 199 bytes which is also the
> > length specified by the HTTP header.
> >
> > zlib inflate() is called with these 199 bytes of input.
> > zstr.avail_in is 194 after the call, result code is -3, zlib error
> > message is "invalid stored block lengths"
> >
> > hth,
> > Kevin
>
> I get exactly this error, when I use inflateInit2 with -MAX_WBITS as in
> kio_http. Using just inflateInit works fine.
>
> The documentation of zlib tells about the 2nd parameter windowBits, it
> should be in the range 8..15. And MAX_WBITS is defined as 15. There is no
> mention, it can be negative.
Maybe it is a special value. I found several occurences when searching for
"inflateInit2 MAX_WBITS" on Google.
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20051205/e8a84973/attachment.sig>
-------------- next part --------------
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
More information about the kfm-devel
mailing list