1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 8b113bb148
dirmngr: Avoid endless loop in case of HTTP error 503.
* dirmngr/ks-engine-hkp.c (SEND_REQUEST_EXTRA_RETRIES): New.
(handle_send_request_error): Use it for 503 and 504.
(ks_hkp_search, ks_hkp_get, ks_hkp_put): Pass a new var for
extra_tries.
--

This is a pretty stupid fix but one which works without much risk of
regressions.  We could have used the existing TRIES but in that case
the fallback to other host would have been too limited.  With the used
value we can have several fallbacks to other hosts.  Note that the
TRIES is still cumulative and not per host.

GnuPG-bug-id: 4600
Signed-off-by: Werner Koch <wk@gnupg.org>
2019-07-03 17:39:53 +02:00
..
2018-10-25 16:53:05 -04:00
2018-10-24 15:56:18 -04:00
2017-02-21 13:11:46 -05:00
2018-11-12 13:54:26 +01:00
2016-09-17 15:57:31 +09:00
2018-10-24 15:56:18 -04:00
2017-07-19 13:41:18 +09:00
2017-03-03 17:17:26 +01:00
2018-10-24 15:56:18 -04:00
2018-10-24 15:56:18 -04:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2014-03-07 19:00:31 +01:00
2010-06-09 16:53:51 +00:00
2018-10-24 15:56:18 -04:00
2018-11-05 09:00:02 +01:00
2010-06-09 16:53:51 +00:00
2011-02-04 12:57:53 +01:00
2018-10-24 15:56:18 -04:00