[Ffmpeg-devel] [PATCH] close connection on end-of-file

Michael Niedermayer michaelni
Sun Mar 4 02:38:26 CET 2007


On Sat, Mar 03, 2007 at 04:48:36PM -0500, Ronald S. Bultje wrote:
> Hi,
> as suggested earlier by Ryan (he took the effort to read the http specs
> more carefully, I just implemented it :-) ), The http request header
> property connection:close is needed for _some_ 1.1 HTTP servers to close
> the connection at the end of file. Servers can use this to do messaging
> between client and server over the same connection (think SOAP-style
> stuff). We obviously don't want that, we just want the data. Attached
> patch implements it and makes downloading some asx files from MS
> streaming servers work again (they would hang on eos).
> Using the Content-Length property is not an option by the way, since
> those same MS streaming servers give a faulty Content-Length value, i.e.
> you only get half the file if you use that.

could you show the whole request-response from such a server, iam just 
curious ...

and iam fine with the patch

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070304/d1163749/attachment.pgp>

More information about the ffmpeg-devel mailing list