[Webkit-unassigned] [Bug 115354] Disable HTTP request "Accept-Encoding:" header field on gstreamer source element to avoid receiving the wrong size when retrieving data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 29 08:32:20 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=115354


Sergio Villar Senin <svillar at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |svillar at igalia.com




--- Comment #8 from Sergio Villar Senin <svillar at igalia.com>  2013-04-29 08:30:40 PST ---
(In reply to comment #7)
> (In reply to comment #6)
> > Could this be the cause of bug 90732 ?
> 
> hmm, could be, but most likely you need the patch from bug 115353. What happens here is that libsoup downloads the compressed data and extracts it using SoupContentDecoder, but returns the size of the specified Content-Length instead, thus the size of the uncompressed data differs from the actual reported size.

I don't think this is the right fix. By doing that you're increasing the http transfers potentially by a lot since the server won't compress data. The problem is that you cannot assume that you could know the actual size of the data after receiving the http headers. It is not true for compressed data as you said but it isn't also true for "Transfer-Encoding: chunked" or for responses without encoding (ended when the connection closes).

So my advice would be to try to reorganize the gstreamer code in order not to depend on the size of the data, not sure if that's possible tough.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list