]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Close connection on EOF
authorgpoirier <gpoirier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 4 Mar 2007 11:59:29 +0000 (11:59 +0000)
committergpoirier <gpoirier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 4 Mar 2007 11:59:29 +0000 (11:59 +0000)
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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8221 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/http.c

index c1423cb54533cbc8d6c5c4a7e2b12ade1cf0c7e3..092151f2b4456aa2267347f81d91f348d2bae36d 100644 (file)
@@ -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,