[Qt-interest] QNetworkReplyImplPrivate caching bug

Thiago Macieira thiago.macieira at trolltech.com
Tue Jun 9 00:13:35 CEST 2009


Pascal Patry wrote:
>1. Enable caching on Webkit
>2. Store something bigger than 32k (for instance, a jpeg)
>3. Load it from the cache
> => An error message shows up: Corrupt JPEG data: premature end of data
>segment
>
>This is caused by QNetworkReplyImplPrivate never getting
> "_q_copyReadyRead()" triggered again after assigning the IODevice. If
> there's more than 32k of data, the function "nextDownstreamBlockSize()"
> still returns 32k. So one would expect this function to be called again
> until the whole copy is completed, but it's not.
>
>This makes the cache useless because it could only be used on small
> files, which defeat its purpose.

This bug was already fixed.
-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090609/1a342451/attachment.bin 


More information about the Qt-interest-old mailing list