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

Opening 5+ tabs causes Express to hang indefinitely #423

Open
jmikrut opened this issue Jul 26, 2022 · 2 comments
Open

Opening 5+ tabs causes Express to hang indefinitely #423

jmikrut opened this issue Jul 26, 2022 · 2 comments

Comments

@jmikrut
Copy link

jmikrut commented Jul 26, 2022

  • Operating System: Mac OS Monterey 12.4
  • Node Version: 14.18.1
  • NPM Version: 6.14.15
  • webpack Version: 5.6.0
  • ${package} Version: 2.25.1

Expected Behavior

I should be able to open many tabs and not cause my Express server to indefinitely hang.

Actual Behavior

Right now, opening more than 5 tabs with webpack-hot-middleware causes Express, and all subsequent requests, to hang indefinitely. The problem is caused by webpack-hot-middleware specifically, as removing it and relying solely on webpack-dev-middleware does not present the same issue.

There is a video demonstrating the behavior within the Payload CMS repo:
payloadcms/payload#824

Code

  const compiler = webpack(webpackDevConfig);

  router.use(webpackDevMiddleware(compiler, {
    publicPath: webpackDevConfig.output.publicPath as string,
  }));

  router.use(webpackHotMiddleware(compiler));

How Do We Reproduce?

Simply try to open more than 5 tabs at once with webpack-hot-middleware running.

@alexander-akait
Copy link
Member

@jmikrut hm, intresting, can you provide small repo, because I think there is not problem webpack-hot-middleware here, because we don;t have logic around tabs

@jmikrut
Copy link
Author

jmikrut commented Nov 7, 2022

Hey @alexander-akait i don’t believe it is an issue with our tabs field at all. No interaction with on-page JS is necessary to recreate the issue. It happens regardless of what is loaded on the page.

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

2 participants