]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Allow to work with cache on requests errors, common func to get date
authorpcarana <pc.moreno2099@gmail.com>
Wed, 13 May 2020 23:43:43 +0000 (18:43 -0500)
committerpcarana <pc.moreno2099@gmail.com>
Wed, 13 May 2020 23:43:43 +0000 (18:43 -0500)
commitdb73dac49fbb556cc01fd59db891c5d8e23ae73e
tree7defb6da64a35d36d75bfe59ebc90121e8389f7b
parentc93c968435687bae79bfeaec80da71ef79b71a26
Allow to work with cache on requests errors, common func to get date

+ Create common function to get the current date and time.
+ Identify request errors, specifically after trying to fetch data via http/rsync without success. This helps to identify if a whole repository can't be downloaded after a considerable time (it can be configured).
+ Allow to work with local files even when there was a download error.
+ Add 'stale-repository-period' argument to set the time period that must lapse to warn about stale repositories (this will be logged to the operation log).
24 files changed:
src/Makefile.am
src/common.c
src/common.h
src/config.c
src/config.h
src/crypto/base64.c
src/http/http.c
src/http/http.h
src/main.c
src/object/certificate.c
src/object/manifest.c
src/object/tal.c
src/reqs_errors.c [new file with mode: 0644]
src/reqs_errors.h [new file with mode: 0644]
src/rrdp/db/db_rrdp_uris.c
src/rrdp/rrdp_loader.c
src/rrdp/rrdp_parser.c
src/rrdp/rrdp_parser.h
src/rsync/rsync.c
src/rtr/db/vrps.c
src/thread_var.c
src/thread_var.h
test/http_test.c
test/impersonator.c