boulder/ocsp
Jacob Hoffman-Andrews 81f724ba53
ocsp/responder: fix goroutine leak in multiSource (#6116)
In multiSource, if the primary source returned before the secondary
source, we would leak the goroutine waiting on results from the secondary
source. This was because that goroutine was writing to a channel that
no longer had any readers.

Fix that by making the channel in getResponse buffered, so getResponse
can always write to its channel, regardless of whether there are readers.

I've confirmed that the unittest fails when run without the fix.
2022-05-16 11:41:58 -07:00
..
responder ocsp/responder: fix goroutine leak in multiSource (#6116) 2022-05-16 11:41:58 -07:00
updater Use OCSP NextUpdate to calculate Redis TTL (#6031) 2022-04-04 15:18:11 -06:00