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 SETTINGS_ENABLE_PUSH HTTP/2 setting #741

Merged
merged 3 commits into from
May 1, 2024

Conversation

gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Apr 29, 2024

This solves #737

We are currently creating H2 connections using the default NIO settings, but this means we weren't sending SETTING_ENABLE_PUSH=0. This caused the server to push streams to the client, which messed up the stream count logic (as we were assuming only the client could create new streams), resulting in a precondition failure when releasing streams.

This PR updates the settings to disable the enablePush setting.

Copy link
Collaborator

@FranzBusch FranzBusch left a comment

Choose a reason for hiding this comment

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

Can we add a tests that shows push streams are being rejected?

@gjcairo gjcairo requested a review from FranzBusch April 30, 2024 11:18
@gjcairo
Copy link
Collaborator Author

gjcairo commented Apr 30, 2024

@swift-server-bot test this please

@gjcairo gjcairo merged commit a220837 into swift-server:main May 1, 2024
6 of 7 checks passed
@gjcairo gjcairo deleted the disable-server-push branch May 3, 2024 16:51
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.

2 participants