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

Disable HTTP/2 by default #903

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Disable HTTP/2 by default #903

merged 1 commit into from
Jul 25, 2019

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Jul 24, 2019

See #866, but once in a while when using HTTP/2, stripe-go sends an
empty request body which then results in a 400 back from the server.

We tracked the issue down to this one open on the Go language's HTTP/2
implementation:

golang/go#32441

For now, the best thing we can do is disable HTTP/2 by default for new
integrations. When the bug is fixed, we can turn it back on again.

r? @dcarney-stripe
cc @stripe/api-libraries

See #866, but once in a while when using HTTP/2, stripe-go sends an
empty request body which then results in a 400 back from the server.

We tracked the issue down to this one open on the Go language's HTTP/2
implementation:

golang/go#32441

For now, the best thing we can do is disable HTTP/2 by default for new
integrations. When the bug is fixed, we can turn it back on again.
//
// https://github.com/golang/go/issues/32441
//
// This is particularly problematic for this library because the empty body
Copy link
Contributor

Choose a reason for hiding this comment

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

Great comment; thanks for capturing all the context in here. It's my sincere hope that we can re-enable H/2 support soon, when that Go issue gets addressed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! And yep, totally +1.

@brandur-stripe
Copy link
Contributor

Thanks Dylan!

@brandur-stripe brandur-stripe merged commit e044438 into master Jul 25, 2019
@brandur-stripe brandur-stripe deleted the brandur-disable-http2 branch July 25, 2019 18:23
@brandur-stripe
Copy link
Contributor

Released as 61.20.0.

nadaismail-stripe pushed a commit that referenced this pull request Oct 18, 2024
… debugging (#903)

* Added some readme documentation, and some dev support items for local debugging

* Fix build error

* Fix build error take 2

* Sorbet is fun

* Update spring.rb

More fun with sorbet.

* Update spring.rb

Even more Sorbet fun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants