[FFmpeg-devel] [PATCH v2 0/9] HTTP rate limiting and retry improvements
Derek Buitenhuis
derek.buitenhuis at gmail.com
Mon Apr 22 17:25:38 EEST 2024
This patch set adds support for properly handling HTTP 429 codes,
and their rate limiting, which is widely used and is standardized.
Changes since first set:
* Added AVERROR_HTTP_TOO_MANY_REQUESTS top error_entries in error.c, per Andreas' review.
* Made respect_retry_after unsigned and use strtoull, per James' review.
* Added docs, as per Stefano's reviews./
* Added a new option to limit the total reconnect delay.
* Unfortunate, but HTTP connection management is messy business.
Original set link: https://ffmpeg.org/pipermail/ffmpeg-devel/2024-April/325706.html
Derek Buitenhuis (9):
avutil/error: Add HTTP 429 Too Many Requests AVERROR code
avformat/http: Use AVERROR_HTTP_TOO_MANY_REQUESTS
avformat/http: Don't bail on parsing headers on "bad" HTTP codes
avformat/http: Add support for Retry-After header
avformat/http: Rename attempts to auth_attempts
avformat/http: Add options to set the max number of connection retries
avformat/http: Add option to limit total reconnect delay
doc/protocols: Re-order HTTP options to match http.c order
doc/protocols: Fill in missing HTTP options
doc/protocols.texi | 139 ++++++++++++++++++++++++++----------------
libavformat/http.c | 77 ++++++++++++++++++-----
libavformat/version.h | 2 +-
libavutil/error.c | 1 +
libavutil/error.h | 1 +
libavutil/version.h | 2 +-
6 files changed, 152 insertions(+), 70 deletions(-)
--
2.43.0
More information about the ffmpeg-devel
mailing list