[FFmpeg-devel] [PATCH v2] avformat/http: Fixes #7975. Before reusing the connection the headers are checked to see if the server is closing the connection.
Michael Niedermayer
michael at niedermayer.cc
Fri Aug 16 12:35:06 EEST 2019
On Thu, Aug 15, 2019 at 05:14:38PM -0500, Ian Klassen wrote:
> Hi,
>
> Sorry Moritz, I somehow missed your feedback. Here's an updated patch with
> the fixed formatting. I also set up a server that you can test with. Try:
>
> ffmpeg -i test.mp4 -hls_flags +append_list -hls_time 6 -method PUT
> -http_persistent 1 http://45.33.124.115/stream.m3u8
>
> The server has persistent connections turned off so you'll see the errors
> appear but they should be resolved once you apply the patch.
>
> Thanks.
>
> Ian
>
> ---
> libavformat/http.c | 13 ++++++++++---
> 1 file changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/libavformat/http.c b/libavformat/http.c
> index 579debc..dcbd33a 100644
> --- a/libavformat/http.c
> +++ b/libavformat/http.c
> @@ -332,15 +332,22 @@ int ff_http_do_new_request(URLContext *h, const char
> *uri)
this patch looks corrupted by line breaks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190816/303d07ba/attachment.sig>
More information about the ffmpeg-devel
mailing list