[vlc-devel] [PATCH] Correct content length and stream close issues

Bill C. Riemers briemers at redhat.com
Sat Jun 21 02:01:00 CEST 2008


Disregard.   Read does not update remaining for non continuous blocks,
so this patch will cause the connection to hang at the end of the data.

Bill


Bill C. Riemers wrote:
> Changes:
> 1. Don't send Connection: close or Connection: Keep-Alive.  So we will
> maintain a persistent connection with http 1.1.
> 2. Close the connection if and only if the server does not send
> Connection: close, and a zero length is received indicated by either
>     Content-Length: 0 or a 0 length size in the byte range.  (Note: A
> server should never send a 0 length byte range, but it doesn't hurt to
>     check.)
> 3. Correct i_remaining to deal with files larger than 2GBi.
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list