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 race condition in test 6.9.2/1 - fixes #115 #116

Closed

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Jun 9, 2020

Fixes the race condition reported in #115

@lorban lorban force-pushed the fix_race_condition_in_Http2_6.9.2_1 branch from 65e0d86 to 818864c Compare June 9, 2020 09:58
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban lorban force-pushed the fix_race_condition_in_Http2_6.9.2_1 branch from 818864c to 65eb9cd Compare June 9, 2020 10:01
@olamy
Copy link

olamy commented Jul 22, 2020

@summerwind do you plan to merge this? and release a new version? thanks (we need it for the Jetty project)

@summerwind
Copy link
Owner

summerwind commented Aug 2, 2020

Thank you for the PR!

I don't think it's a good idea to rely on the number of frames you receive. This PR assumes that it receives three frames, but other implementations may receive other frames.

To resolve the race condition in this case, it seems like a good idea to simply remove the ACK validation of the SETTINGS frame and only validate the length of DATA frame.

@lorban @olamy Could you please try the codes in #117 to see if Jetty is OK?

@lorban
Copy link
Contributor Author

lorban commented Aug 3, 2020

I think your proposed change in #117 is sound, so you can close this PR.

@summerwind
Copy link
Owner

#117 merged, so this one is closed. Thank you!

@summerwind summerwind closed this Aug 4, 2020
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