diff options
author | erankor <eran.kornblau@kaltura.com> | 2020-12-03 10:42:52 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-01-03 16:47:29 +0100 |
commit | fde5593c7ce5288ae1333e9dc3ca4f95caa69444 (patch) | |
tree | 86d733b30e5584396049f2b3c65612dbf0134671 /doc | |
parent | f26b5acfc03375c96e593197a8145ada1b63b1fd (diff) | |
download | ffmpeg-fde5593c7ce5288ae1333e9dc3ca4f95caa69444.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocols.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/protocols.texi b/doc/protocols.texi index 00a6665482..af887761e9 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -410,6 +410,13 @@ for live / endless streams. @item reconnect_streamed If set then even streamed/non seekable streams will be reconnected on errors. +@item reconnect_on_network_error +Reconnect automatically in case of TCP/TLS errors during connect. + +@item reconnect_on_http_error +A comma separated list of HTTP status codes to reconnect on. The list can +include specific status codes (e.g. '503') or the strings '4xx' / '5xx'. + @item reconnect_delay_max Sets the maximum delay in seconds after which to give up reconnecting |