]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Avoid HTTP requests on previously error'd URIs.
authorpcarana <pc.moreno2099@gmail.com>
Fri, 17 Jan 2020 23:40:18 +0000 (17:40 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 17 Jan 2020 23:40:18 +0000 (17:40 -0600)
commit149f1788ccce259fdbe579c02eb3f647ada40a09
treeab4d7bb8cfede259c8e28d14f5af37347d7dfba1
parent6401a4739ac512985158e63499e037dc2f2078db
Avoid HTTP requests on previously error'd URIs.

+Create type to set RRDP URIs request status (error, unvisited, visited). The status is set accordingly to the result of the last request and processing of the RRDP Update Notification URIs; during RRDP loading, the status is validated to either do a request (URIs hasn't been visited) or skip it (was previously visited or had an error). If a request had an error, then continue the access methods flow considering priorities.
+Update RET_NOT_FOUND_URI macro, it always returned the same error code.
+Remove downloaded files via HTTP (and its local directory structure) whenever there's an error during the download process.
src/http/http.c
src/object/certificate.c
src/object/tal.c
src/rrdp/db/db_rrdp_uris.c
src/rrdp/db/db_rrdp_uris.h
src/rrdp/rrdp_loader.c
src/rrdp/rrdp_parser.c