MINOR: ssl: Reinsert updated ocsp response later in tree in case of http error
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 12 Jan 2023 08:49:11 +0000 (09:49 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 12 Jan 2023 12:13:45 +0000 (13:13 +0100)
commit10f113ec5567e222d32356a029aeec1dea62626c
treed4c822e953b346f96b43341009f0aac6ad498d79
parent1c647adf465006dd95bc6bec4e46eb70f073f071
MINOR: ssl: Reinsert updated ocsp response later in tree in case of http error

When updating an OCSP response, in case of HTTP error (host unreachable
for instance) we do not want to reinsert the entry at the same place in
the update tree otherwise we might retry immediately the update of the
same response. This patch adds an arbitrary 1min time to the next_update
of a response in such a case.
After an HTTP error, instead of waking the update task up after an
arbitrary 10s time, we look for the first entry of the update tree and
sleep for the apropriate time.
src/ssl_ocsp.c