[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.

Ian Klassen ian at virtualfunc.com
Fri Aug 16 15:33:18 EEST 2019


Pasting it into an email may not have been a good idea... here it is as an
attachment. Thanks.


On Fri, Aug 16, 2019 at 4:35 AM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> 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.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-http-Fixes-7975.-Before-reusing-the-connect.patch
Type: application/octet-stream
Size: 874 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190816/1b8aebc1/attachment.obj>


More information about the ffmpeg-devel mailing list