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

codegen: Add fix to prevent HTTP/2 event stream request hang on error #4288

Merged
merged 2 commits into from Feb 22, 2022

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Feb 21, 2022

Adds fix addressing an issue where SDK's bi-directional eventstream API operation request could hang when the HTTP/2 stream was closed by the service with a non-200 status code.

Go 1.15 through 1.17 have an issue where the HTTP/2 request can hang while waiting for the HTTP response, and input payload reader. The Expect: 100-Continue workaround forces the HTTP client to wait for a 100 continue or other HTTP status code before attempting to wait for the request's body to be read. This workaround is not needed for Go
1.18, as a fix to the HTTP client resolves this issue.

Fixes services/lexruntimev2 and service/transcribestreamingservice eventstream operations.

Related to aws/aws-sdk-go-v2#1515

Adds fix addressing an issue where SDK's bi-directional eventstream API
operation request could hang when the HTTP/2 stream was closed by the
service with a non-200 status code.

Go 1.15 through 1.17 have an issue where the HTTP/2 request can hang
while waiting for the HTTP response, and input payload reader. The
Expect: 100-Continue workaround forces the HTTP client to wait for a
`100 continue` or other HTTP status code before attempting to wait for
the request's body to be read. This workaround is not needed for Go
1.18, as a fix to the HTTP client resolves this issue.

Related to aws/aws-sdk-go-v2#1515
@jasdel jasdel merged commit aef7eaf into aws:main Feb 22, 2022
@jasdel jasdel deleted the fixup/lexHangEvenStream branch February 22, 2022 18:05
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.

None yet

2 participants