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

ngrok: set the alpn field when app_protocol is specified #131

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

jrobsonchase
Copy link
Contributor

If the upstream is a normal HTTPs server, it expects to have http/2 negotiated
via alpn. If alpn isn't provided, it will assume http/1.1. If our edge proxy is
sending down http/2 because app_protocol was specified, this results in a
protocol mismatch, and invalid requests/responses will be seen.

This ensures that the negotiation happens as expected.

@jrobsonchase
Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@jrobsonchase jrobsonchase force-pushed the josh/app_protocol_alpn branch from 52caed0 to 06c845a Compare January 12, 2024 16:20
@jrobsonchase jrobsonchase marked this pull request as ready for review January 12, 2024 16:23
Base automatically changed from del/app_protocol to main January 12, 2024 17:21
@jrobsonchase jrobsonchase force-pushed the josh/app_protocol_alpn branch from 1e8498c to f987c41 Compare January 17, 2024 19:07
@jrobsonchase jrobsonchase merged commit dcf2713 into main Jan 17, 2024
11 checks passed
@jrobsonchase jrobsonchase deleted the josh/app_protocol_alpn branch January 17, 2024 20:00
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