summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2023-05-30 16:02:29 +0000
committerJob Snijders <job@cvs.openbsd.org>2023-05-30 16:02:29 +0000
commit1ea9138ac843d8bd5306d25edf0c4b18f2ff8469 (patch)
tree01d5ce08eac609e49256a058a1a83b290c663973 /sys
parent5c681176934959ca1c98655146b0eff4d53e4530 (diff)
Fixup file modification timestamps to optimize failover from RRDP to RSYNC
In the RSYNC protocol a file's last modification time and its size are used to determine whether sending a (partial) copy over the wire is needed. Previously, when RRDP data structures are serialized to disk, the mtime of files in DIR_VALID ended up being UTIME_NOW. Thus, the mtimes of files obtained through RRDP will never match the mtimes of the same files available through RSYNC - causing each and every file to be added to the file transfer list. Instead, use the internal timestamps of RPKI files as the last modified timestamp. Specifically, for Signed Objects (ROAs, MFTs, GBRs, TAKs, ASPAs) the CMS signing-time, for .cer files the X.509 notBefore, and for .crl files the CRL lastUpdate. This results in a surprising optimization for the number files which have to be transfered. OK claudio@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions