Closed willscott closed 1 year ago
If Caboose returns ErrSaturnRetryAfter
with RetryAfter
as error attribute, we will be able to bubble it up to go-libipfs/gateway like we do existing timeouts:
And then return correct HTTP 429 with Retry-After header.
I've filed https://github.com/ipfs/go-libipfs/issues/188 which is how we wire this up in a way that is useful beyond Saturn and Caboose.
This landed in https://github.com/filecoin-saturn/caboose/pull/59.
if a CID fails multiple times across the pool, add it to a cooldown bucket and return some error that bifrost-gateway could turn into 429 (Too Many Requests) response with Retry-After header matching the cooldown duration.