Commit 167c5531 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Guillaume Poirier

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
parent 636d6a4a
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment