]> git.sesse.net Git - vlc/commit
http: fix Content-Length and stream closure issues.
authorBill C. Riemers <briemers+git@redhat.com>
Sat, 21 Jun 2008 00:47:51 +0000 (20:47 -0400)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 22 Jun 2008 17:31:07 +0000 (20:31 +0300)
commit2c16687563b6e6096f5621db56917d9ef05424b2
tree68ee32619f04da5046e2d7e32477d2b17861650a
parentf5623dec1ca290e9adcbbc34ba4fe3f03a4c2e69
http: fix Content-Length and stream closure issues.

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.
3. Correct i_remaining to deal with file larger than 2GBi.
4. Update i_remaining in Read and OpenWithCookies.
5. Use -1 for uninitialized size so we can tell the difference from a
   zero length result.

Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/access/http.c