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

Drop spdy in favor of node:http2 #5408

Closed
talentlessguy opened this issue Jan 24, 2025 · 2 comments
Closed

Drop spdy in favor of node:http2 #5408

talentlessguy opened this issue Jan 24, 2025 · 2 comments

Comments

@talentlessguy
Copy link

Modification Proposal

Remove spdy and use node built-in http2 server. spdy is broken since node 16 (source. Perhaps node:http2 could be wrapped in a way that it would be compatible with express.

Expected Behavior / Situation

Usage of http2 in favor spdy. Support for http2 and deprecation of spdy.

Actual Behavior / Situation

Lack of http2 option and only support for spdy.

Please paste the results of npx webpack-cli info here, and mention other relevant information

Relevant discussions/PRs:

@Abdulkhan104
Copy link

basically its issue solve type the command :::- npm config set legacy-peer-deps true

@alexander-akait
Copy link
Member

We already support http2 out of box, but only for custom application (which support it), example for connect https://github.com/webpack/webpack-dev-server/tree/master/examples/server/http2

built-in http2 server

You can use pure http2 server using the server option like here https://github.com/webpack/webpack-dev-server/blob/master/examples/app/hono/webpack.config.js#L35C5-L35C11

spdy will removed in the next major release

Unfortunately express doesn't support http2, so it will not work

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

No branches or pull requests

3 participants