-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Bootstrapping WebSockets with HTTP/2 #329
Comments
You can probably do that using nginx as the frontend, I'm leaning towards HTTP/3 rather than this specially since I don't use and didn't saw real benefits in H2, rather than a very complex code to deal with it. |
Still doesn't seem so hard to implement it anyway, you basically has to extend the ProtoRequestHttp2 with the new settings, and H2Stream with websocket virtual functions probably using ProtocolWebSocket to read/write messages. |
Thanks, I got it. I will try later. |
Suppose a web page has a script to create a new websocket,
then every tab that loads that page (at each time) will create a new websocket.
In HTTP1.1, a websocket is in fact a TCP socket connection :-(.
And browsers like chrome and firefox limit number of websocket connections.
Bootstrapping WebSockets with HTTP/2, as specified by https://tools.ietf.org/html/rfc8441,
allow multiple websockets to live in one Http2 connection, as a stream, and already gets supported by chrome and firefox.
However the work to support Websocket in Cutelyst seems not easy.
I noticed that the design of http2 is far different from http's, which stop my steps:
For Http
For Http2
@dantti , I would greatly appreciate it if you have plan to support it. Thanks!
The text was updated successfully, but these errors were encountered: