]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
HTTP: Apply retries only on transient errors
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 24 Sep 2021 00:02:12 +0000 (19:02 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 24 Sep 2021 00:15:17 +0000 (19:15 -0500)
commit57505fbbe4bf5078acdffb05fb106b1ce63fdf87
tree74197b5db477c5729def8d74bd5d92149cda7501
parent5c867a36ac69f45807b9a482ed34701c5126879f
HTTP: Apply retries only on transient errors

File too big -> Do not retry
Timeout -> Retry
HTTP 408, 429, 5xx -> Retry
Else -> Do not retry

Most of this logic was copied from curl.
src/http/http.c