[Ffmpeg-cvslog] r8221 - trunk/libavformat/http.c

gpoirier subversion
Sun Mar 4 12:59:29 CET 2007


Author: gpoirier
Date: Sun Mar  4 12:59:29 2007
New Revision: 8221

Modified:
   trunk/libavformat/http.c

Log:
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


Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c	(original)
+++ trunk/libavformat/http.c	Sun Mar  4 12:59:29 2007
@@ -221,6 +221,7 @@ static int http_connect(URLContext *h, c
              "Range: bytes=%"PRId64"-\r\n"
              "Host: %s\r\n"
              "Authorization: Basic %s\r\n"
+             "Connection: close\r\n"
              "\r\n",
              post ? "POST" : "GET",
              path,




More information about the ffmpeg-cvslog mailing list