Skip to content

rest: improve handling of HTTP2 goaway#5018

Merged
MichaelEischer merged 1 commit intorestic:masterfrom
MichaelEischer:rest-retry-http2-goaway
Aug 29, 2024
Merged

rest: improve handling of HTTP2 goaway#5018
MichaelEischer merged 1 commit intorestic:masterfrom
MichaelEischer:rest-retry-http2-goaway

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented Aug 26, 2024

What does this PR change? What problem does it solve?

The HTTP client can only retry HTTP2 requests after receiving a GOAWAY response if it can rewind the body. As we use a custom data type, explicitly provide an implementation of GetBody.

Was the change previously discussed in an issue or on the forum?

Fixes https://forum.restic.net/t/receiving-http2-goaway-messages-with-windows-restic-v0-17-0/8367

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer force-pushed the rest-retry-http2-goaway branch from 855ec7d to 4a16339 Compare August 26, 2024 13:38
The HTTP client can only retry HTTP2 requests after receiving a GOAWAY
response if it can rewind the body. As we use a custom data type,
explicitly provide an implementation of `GetBody`.
@MichaelEischer MichaelEischer force-pushed the rest-retry-http2-goaway branch from 4a16339 to 36c4475 Compare August 26, 2024 13:45
Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit 0aadfe3 into restic:master Aug 29, 2024
@MichaelEischer MichaelEischer deleted the rest-retry-http2-goaway branch August 29, 2024 14:58
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.

1 participant