[vlc-devel] [PATCH] No need to send Connection: Keep-Alive or Connection: Closed
Rémi Denis-Courmont
rdenis at simphalempin.com
Tue Jun 17 20:40:48 CEST 2008
Le mardi 17 juin 2008 21:05:02 Bill C. Riemers, vous avez écrit :
> This replaces my previous patch not to send Connection: Closed. As
> discussed, there is no need to send Connection: Keep-Alive either, as
> this will just confuse HTTP 1.0 proxy servers.
Once we stop sending Connection, the server MUST do at least one of:
- specify the Content-Length,
- use chunked encoding, or
- set Connection: close in the response.
This is so that we can detect the end of file. I am fine with assuming that
the server will do this.
But... I suspect the proposed patch will breaks if Content-Length is 0 (i.e.
if we try to request from the end of the file), and neither Connection nor
chunked encoding are used.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list