Skip to content
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

fix(rt): second fix for okhttp engine crashing on Android when coroutine is cancelled uploading request body #728

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Nov 3, 2022

Issue #

awslabs/aws-sdk-kotlin#733

Description of changes

The previous fix applied in #723 was not insufficient. This change wraps the entire writeTo method in a try/catch block and surfaces everything as IOException from there. This change was tested locally by Amplify to verify the behavior.

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

@aajtodd aajtodd requested a review from a team as a code owner November 3, 2022 14:50
@sonarcloud
Copy link

sonarcloud bot commented Nov 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@aajtodd aajtodd merged commit 8d6ccc9 into main Nov 3, 2022
@aajtodd aajtodd deleted the fix-733 branch November 3, 2022 15:51
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.

3 participants