dirmngr: Detect dead keyservers and try another one.
authorWerner Koch <wk@gnupg.org>
Wed, 12 Mar 2014 13:32:34 +0000 (14:32 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 12 Mar 2014 13:33:51 +0000 (14:33 +0100)
commitfb56a273b1f2b3a99dc1d1a0850378ab7625e6b9
tree84bb489088b737fccafc5fec5d9fd07a8ce7ac4c
parent99135b89ced35d867dddadf9d51e63a3d8837fc3
dirmngr: Detect dead keyservers and try another one.

* dirmngr/ks-action.c (ks_action_resolve): Rename var for clarity.
(ks_action_search, ks_action_put): Ditto.
(ks_action_get): Consult only the first server which retruned some
data.

* dirmngr/ks-engine-hkp.c (SEND_REQUEST_RETRIES): New.
(map_host): Add arg CTRL and call dirmngr_tick.
(make_host_part): Add arg CTRL.
(mark_host_dead): Allow the use of an URL.
(handle_send_request_error): New.
(ks_hkp_search, ks_hkp_get, ks_hkp_put): Mark host dead and retry on
error.
dirmngr/ks-action.c
dirmngr/ks-engine-hkp.c