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

Ronald S. Bultje rbultje
Sat Mar 3 22:48:36 CET 2007


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.

Cheers,
Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070303/2dcab51c/attachment.bin>



More information about the ffmpeg-devel mailing list