[Qt-interest] QNetworkReplyImplPrivate caching bug

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Jun 9 00:03:54 CEST 2009


You need to file this bug with QT's bug tracking system...

While there are many QT developers on here, bugs posted here are not
filed, and will get lost...

Scott

> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Pascal Patry
> Sent: Monday, June 08, 2009 2:18 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] QNetworkReplyImplPrivate caching bug
> 
> 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.
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list