diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2007-03-04 11:59:29 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-03-04 11:59:29 +0000 |
commit | 167c553176d1bd18863928d5afe12c8237d64b83 (patch) | |
tree | 7bbd596b19866054df93b1cd347c2aae1f3a11f5 | |
parent | 636d6a4a472d756cfb0ee845249e1e4f303e2134 (diff) | |
download | ffmpeg-167c553176d1bd18863928d5afe12c8237d64b83.tar.gz |
Close connection on EOF
this makes downloading some asx files from MS
streaming servers work again (they would hang on eos).
The http request header property connection:close is needed for _some_
1.1 HTTP servers to close the connection at the end of file.
patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net%
Original thread:
Date: Mar 3, 2007 10:48 PM
Subject: [Ffmpeg-devel] [PATCH] close connection on end-of-file
Originally committed as revision 8221 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index c1423cb545..092151f2b4 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -221,6 +221,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr, "Range: bytes=%"PRId64"-\r\n" "Host: %s\r\n" "Authorization: Basic %s\r\n" + "Connection: close\r\n" "\r\n", post ? "POST" : "GET", path, |