Skip to content

Fix bug in migration from HTTP1 to HTTP2 and back to HTTP1 #486

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

Merged
merged 4 commits into from
Nov 22, 2021

Conversation

dnadoba
Copy link
Collaborator

@dnadoba dnadoba commented Nov 19, 2021

We forgot to update the overflowIndex during migration from HTTP1 to HTTP2. The added test case would crash without the fix.

Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Very nice catch!

Comment on lines 601 to 607
return lhs.close == rhs.close &&
lhs.starting.elementsEqual(rhs.starting, by: {
$0.0 == $1.0 && $0.1 === $1.1
}) &&
lhs.backingOff.elementsEqual(rhs.backingOff, by: {
$0.0 == $1.0 && $0.1 === $1.1
})
Copy link
Member

Choose a reason for hiding this comment

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

NIT: Interesting auto formatting...

@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Nov 22, 2021
@dnadoba dnadoba merged commit b479afe into swift-server:main Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants