Skip to content

Conversation

@alextwoods
Copy link
Contributor

Description of changes:
The _consume_body_async async task calls dest.end_stream() which sets _done on the BufferableByteStream, however, the read method continues to raise the BlockingIOError when chunks is empty.

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

@alextwoods alextwoods requested a review from a team as a code owner March 12, 2025 17:07
@alextwoods alextwoods merged commit b3a8ebc into smithy-lang:develop Mar 12, 2025
2 checks passed
JordonPhillips added a commit that referenced this pull request Mar 12, 2025
This is a followup to #432. I think the issue was that end_stream
was getting called when the buffer was already empty, which would
put it in an incomplete state. Unfortunately that fix also left it
in an incomplete (but now working) state. This make sure it doesn't
get into that incomplete state and adds a failing test for that
case.
JordonPhillips added a commit that referenced this pull request Mar 12, 2025
This is a followup to #432. I think the issue was that end_stream
was getting called when the buffer was already empty, which would
put it in an incomplete state. Unfortunately that fix also left it
in an incomplete (but now working) state. This make sure it doesn't
get into that incomplete state and adds a failing test for that
case.
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