Skip to content

S3 backend: make actual use of (Options).ClientTimeout#133

Open
ahouene wants to merge 8 commits intoPowerDNS:mainfrom
ahouene:s3-client-timeout
Open

S3 backend: make actual use of (Options).ClientTimeout#133
ahouene wants to merge 8 commits intoPowerDNS:mainfrom
ahouene:s3-client-timeout

Conversation

@ahouene
Copy link
Contributor

@ahouene ahouene commented Mar 17, 2026

As described in #128, the (Options).ClientTimeout value is not being used, because it is assigned to a http.Client that ends up not being used.

This PR introduces a func (Backend).clientTimeoutContext that returns a context.Context with a timeout set from that option, to be used in Store, Load, Delete and List.

To distinguish from any other context expiring from a timeout, a ErrClientTimeout is introduced and will be returned as the result of a timeout coming from the options.

Closes #128

@ahouene ahouene requested review from Luit and neilcook March 17, 2026 15:16
@ahouene ahouene self-assigned this Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(s3.Options).ClientTimeout ineffective

1 participant