Skip to content

Conversation

@JordonPhillips
Copy link
Contributor

Bodies weren't being rewound before a retry, which was causing some issues. Notably asyncio would hang forever awaiting the number of bytes we'd already declared in the content-length. But in general it just meant retries didn't work at all.

This updates the serializer to use a seekable stream wherever possible for non-streaming bodies. For streaming blobs, this was already being done where necessary.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This updates requests to use seekable bodies wherever possible so
that they can be retried.
@JordonPhillips JordonPhillips requested a review from a team as a code owner January 7, 2025 15:31
Co-authored-by: Nate Prewitt <[email protected]>
@JordonPhillips JordonPhillips merged commit 7494593 into develop Jan 9, 2025
5 checks passed
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.

2 participants