HTTP 5xx should fail over to the next server
Closed, ResolvedPublic

Description

I use the SKS pool. Currently my dirmngr is selecting a server that accepts connections but returns a HTTP 502 error to any request. When that happens, dirmngr immediately gives up and returns "no data".

Instead, HTTP 5xx ("server error") responses should cause a retry to another server from the pool – just as if the server were completely down.

2018-10-09 20:41:30 dirmngr[24717.6] DBG: chan_6 <- KS_GET -- 0x18ECDA46CBF6BAC6
2018-10-09 20:41:30 dirmngr[24717.6] DBG: chan_6 -> S PROGRESS tick ? 0 0
2018-10-09 20:41:31 dirmngr[24717.6] error accessing 'https://5.9.137.111:443/pks/lookup?op=get&options=mr&search=0x18ECDA46CBF6BAC6': http status 502
2018-10-09 20:41:31 dirmngr[24717.6] command 'KS_GET' failed: No data
2018-10-09 20:41:31 dirmngr[24717.6] DBG: chan_6 -> ERR 167772218 No data <Dirmngr>
grawity created this task.Oct 9 2018, 7:52 PM

I believe this would be a good improvement in user experience

werner triaged this task as High priority.Oct 21 2018, 2:48 PM
werner added a subscriber: werner.Nov 6 2018, 12:48 PM

Sorry, it didn't made it into 2.2.11.

Will go into 2.1.12 to be released next week.

werner closed this task as Resolved.Tue, Dec 11, 3:05 PM
werner claimed this task.