<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>90732</bug_id>
          
          <creation_ts>2012-07-07 17:51:08 -0700</creation_ts>
          <short_desc>[Soup] Wrong content-length reported for Youtube live streams</short_desc>
          <delta_ts>2020-05-13 05:28:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://youtube.com/live</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mrobinson</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>664431</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-07-07 17:51:08 -0700</bug_when>
    <thetext>With patch from bug 90084 I can see the response.expectedContentLength() being a huge number, for a live stream (duration = infinite)... Instead 0 should be reported.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664432</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-07-07 17:52:07 -0700</bug_when>
    <thetext>0 or some other value but not such huge number :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>676918</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-07-24 09:37:54 -0700</bug_when>
    <thetext>Actually I don&apos;t think there is any bug on wk as the server indeed specifies that content-length:

&gt; GET /liveplay?ip=195.235.186.93&amp;upn=WbwobTspM5k&amp;sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cid%2Cip%2Cipbits%2Citag%2Cns%2Csource%2Cupn%2Cexpire&amp;cp=U0hTSFFSTl9HTUNOM19JTFJJOi1KdEFrNzlWS3Fu&amp;fexp=925500%2C910006%2C915507%2C907217%2C907335%2C921602%2C922600%2C919804%2C920704%2C924500%2C906831%2C924700%2C913547%2C920706%2C924402%2C907344%2C912706%2C902518&amp;algorithm=throttle-factor&amp;burst=40&amp;ipbits=8&amp;itag=34&amp;sver=3&amp;signature=3ADB9D6370C7DEFCE354E80C37EB10C7974F5C4E.20AFA3C69359FD0676079D79084874ACBF25006D&amp;source=youtube&amp;expire=1343170823&amp;key=yt1&amp;factor=1.25&amp;ns=yt-live&amp;id=dp29wce-mqI HTTP/1.1
&gt; Soup-Debug-Timestamp: 1343147772
&gt; Soup-Debug: SoupSessionAsync 1 (0xa3c840), SoupMessage 57 (0xbfec30), SoupSocket 39 (0x7f000400cc20)
&gt; Host: v17.lscache1.c.youtube.com
&gt; User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1+ (KHTML, like Gecko) Chromium/17.0.963.56 Chrome/17.0.963.56 Safari/537.1+
&gt; icy-metadata: 1
&gt; transferMode.dlna: Streaming
&gt; Referer: http://www.youtube.com/user/CBCEgypt?feature=lb&amp;v=dp29wce-mqI
&gt; Accept: */*
&gt; Accept-Encoding: gzip, deflate
&gt; Connection: Keep-Alive
&gt; Cookie: use_hitbox=d5c5516c3379125f43aa0d495d100d6ddAEAAAAw; VISITOR_INFO1_LIVE=-MuAl84ZGso; __utma=27069237.43384969.1343147772.1343147772.1343147772.1; __utmb=27069237.1.10.1343147772; __utmc=27069237; __utmz=27069237.1343147772.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PREF=f1=50000000&amp;fv=0.0.0
  
&lt; HTTP/1.1 1 Cancelled
&lt; Soup-Debug-Timestamp: 1343147773
&lt; Soup-Debug: SoupMessage 57 (0xbfec30)
&lt; Last-Modified: Wed, 02 May 2007 10:26:10 GMT
&lt; Content-Type: video/x-flv
&lt; Date: Tue, 24 Jul 2012 16:36:13 GMT
&lt; Expires: Tue, 24 Jul 2012 16:36:13 GMT
&lt; Cache-Control: private, max-age=1
&lt; Accept-Ranges: bytes
&lt; Content-Length: 2147483646
&lt; Connection: close
&lt; X-Content-Type-Options: nosniff
&lt; Server: gvls 2.0

PS: ignore the HTTP/1.1 1 Cancelled status code in the response, as it&apos;s how the WK MediaPlayer works for the gstreamer backend. It first cancels the original request and issues the exact same one to fully gain control over it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>676977</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-07-24 10:26:00 -0700</bug_when>
    <thetext>So it&apos;s not the server returning a bogus Content-Length (-1)?
What should we do then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1652185</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-05-13 05:28:29 -0700</bug_when>
    <thetext>Youtube live works now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>