Skip to content

fix: Fix silent failure with CRT HTTP client when response stream has an error #921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Apr 15, 2025

CI PR in SDK: awslabs/aws-sdk-swift#1919

Issue #

N/A

Description of changes

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… bc as soon as headers are returned the continuation gets resumed, and resuming continuation again in the case of stream error does nothing and error doesn't get bubbled up. This change sends error back up by closing stream with it.
Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

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

Merge only if this passes our SDK integration test suite.

@sichanyoo sichanyoo merged commit 67a9feb into main Apr 15, 2025
27 checks passed
@sichanyoo sichanyoo deleted the fix/crt-http-client-stream-complete-error branch April 15, 2025 18:04
@sichanyoo sichanyoo restored the fix/crt-http-client-stream-complete-error branch April 15, 2025 21:21
@sichanyoo
Copy link
Contributor Author

Copy PR: #922

@dayaffe dayaffe deleted the fix/crt-http-client-stream-complete-error branch April 17, 2025 13:31
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