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 datarace for http2 #72

Merged
merged 2 commits into from
Nov 19, 2018
Merged

Conversation

t-yuki
Copy link
Contributor

@t-yuki t-yuki commented Oct 18, 2018

*Issue #71

*Description of changes: Unit test and quick fix of http2 datarace reported in #71
However, it may have other problems by race since this is only a trivial patch.
Also, since httptest.NewRequest is for server side incoming requests, as noted in the document, we should use http.NewRequest.

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

@@ -225,3 +228,42 @@ func TestRoundTrip_reuse_datarace(t *testing.T) {
}
wg.Wait()
}

func TestRoundTrip_http2_datarace(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick.... Could we rename this function to be "TestRoundTripHttp2Datarace"? Since we haven't used underscore in naming our functions, it would be good to keep consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK!

@luluzhao luluzhao merged commit 996d3b9 into aws:master Nov 19, 2018
@luluzhao
Copy link
Contributor

@t-yuki merged. Thank you for your contribution.

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