Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Get https websockets working #2153

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Get https websockets working #2153

merged 1 commit into from
Dec 13, 2021

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Dec 8, 2021

It turns out websocket upgrades with HTTP/2 require an HTTP extension,
which Cloudflare doesn't currently support: https://datatracker.ietf.org/doc/html/rfc8441

To avoid this, enable HTTP/1 for the remote client.

This required an update to rustls to allow enabling http1.

Fixes #1910 (cc #2135).

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

This looks fine to me, stamping if you need an urgent merge

@threepointone
Copy link
Contributor

Happy to stamp and land this if you can rebase and fix the conflict, thanks @jyn514

It turns out websocket upgrades with HTTP/2 require an HTTP extension,
which Cloudflare doesn't currently support: https://datatracker.ietf.org/doc/html/rfc8441

To avoid this, enable HTTP/1 for the remote client.

This required an update to rustls to allow enabling http1.
@jyn514
Copy link
Contributor Author

jyn514 commented Dec 13, 2021

Thanks! Fixed the conflict :)

@jyn514 jyn514 merged commit 69d1c20 into master Dec 13, 2021
@delete-merged-branch delete-merged-branch bot deleted the jnelson/https-websockets branch December 13, 2021 20:36
@threepointone threepointone mentioned this pull request Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot connect to websocket with wrangler dev
2 participants