]> git.sesse.net Git - ffmpeg/commit
avformat/http: support retry on connection error
authorerankor <eran.kornblau@kaltura.com>
Thu, 3 Dec 2020 08:42:52 +0000 (10:42 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 3 Jan 2021 15:47:29 +0000 (16:47 +0100)
commitfde5593c7ce5288ae1333e9dc3ca4f95caa69444
tree86d733b30e5584396049f2b3c65612dbf0134671
parentf26b5acfc03375c96e593197a8145ada1b63b1fd
avformat/http: support retry on connection error

Add 2 new options:
- reconnect_on_http_error - a list of http status codes that should be
    retried. the list can contain explicit status codes / the strings
    4xx/5xx.
- reconnect_on_network_error - reconnects on arbitrary errors during
    connect, e.g. ECONNRESET/ETIMEDOUT

the retry employs the same exponential backoff logic as the existing
reconnect/reconnect_at_eof flags.

related tickets:
https://trac.ffmpeg.org/ticket/6066
https://trac.ffmpeg.org/ticket/7768

Signed-off-by: Marton Balint <cus@passwd.hu>
doc/protocols.texi
libavformat/http.c
libavformat/version.h