Skip to content

[v2] core: honor context while waiting for reauthentication - #3950

Merged
mandre merged 1 commit into
v2from
bp-v2-f2a09ac
Aug 20, 2026
Merged

mandre merged 1 commit into
v2from
bp-v2-f2a09ac

Conversation

@gophercloud-backport-bot

Copy link
Copy Markdown

Backport: #3939

Fixes #3922

A request waiting for another goroutine's reauthentication ignores its context and can remain blocked past its deadline. This change lets the waiter return ctx.Err() without interrupting the active reauthentication.

ErrErrorAfterReauthentication now unwraps the retried request error, allowing ResponseCodeIs to detect status codes such as 404.

Links to the line numbers/files in the OpenStack source code that support the code in this PR:

N/A. This changes client-side synchronization and error handling.

@github-actions github-actions Bot added v2 This PR targets v2 edit:gophercloud This PR updates common Gophercloud code semver:minor Backwards-compatible change labels Aug 16, 2026
@stephenfin

Copy link
Copy Markdown
Contributor

#3930 will add the missing test helpers.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 63.906% (+0.01%) from 63.893% — bp-v2-f2a09ac into v2

@mandre
mandre merged commit a4ed72c into v2 Aug 20, 2026
16 checks passed
@mandre
mandre deleted the bp-v2-f2a09ac branch August 20, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:gophercloud This PR updates common Gophercloud code semver:minor Backwards-compatible change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants