PR27531: retry within default retry_limit will be supported.
authorAlice Zhang <alizhang@redhat.com>
Tue, 6 Jul 2021 20:12:43 +0000 (16:12 -0400)
committerMark Wielaard <mark@klomp.org>
Fri, 9 Jul 2021 10:22:05 +0000 (12:22 +0200)
commit60117fb6b2006e1ef282fee48eae7646622d1667
tree8ae2e9c0cb0d193acf8f3838782365e499c397dd
parent0ae9b791b47cdee92ac7221e3eead79c83a64a40
PR27531: retry within default retry_limit will be supported.

In debuginfod-client.c (debuginfod_query_server),insert a
goto statement for jumping back to the beginning of curl
handles set up if query fails and a non ENOENT error is returned.

Also introduced DEBUGINFOD_RETRY_LIMIT_ENV_VAR and default
DEBUGINFOD_RETRY_LIMIT(which is 2).

Correponding test has been added to tests/run-debuginfod-find.sh

Signed-off-by: Alice Zhang <alizhang@redhat.com>
config/ChangeLog
config/debuginfod.sysconfig
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
debuginfod/debuginfod.h.in
doc/debuginfod_find_debuginfo.3
tests/ChangeLog
tests/run-debuginfod-find.sh