diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2024-04-22 15:25:42 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2024-04-25 15:21:25 +0100 |
commit | 2d5fa816fb94563de6ee8585430dcc9bfa4455da (patch) | |
tree | 05d2e45af794a58683f2ee1db1b4184852d588fc /libavfilter/f_zmq.c | |
parent | 6d89fd4c27b2c907acaf44f923e624a24643a2ba (diff) | |
download | ffmpeg-2d5fa816fb94563de6ee8585430dcc9bfa4455da.tar.gz |
avformat/http: Add support for Retry-After header
429 and 503 codes can, and often do (e.g. all Google Cloud
Storage URLs can), return a Retry-After header with the error,
indicating how long to wait, asd either a date, or in seconds,
before retrying again. If it is not respected by, for example,
using our default backoff stratetgy instead, chances of success
are very unlikely.
Some references:
* https://datatracker.ietf.org/doc/html/rfc6585
* https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.3
This adds an AVOption to respect that header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavfilter/f_zmq.c')
0 files changed, 0 insertions, 0 deletions