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

fix: early return on closed server only for warmup #16216

Closed
wants to merge 1 commit into from

Conversation

patak-dev
Copy link
Member

Description

@cpojer reported he is experiencing a server crash when switching branches. It seems it is because of closed server error we throw to do an early return while restarting the server.
image

More info in this thread https://discord.com/channels/804011606160703521/1213652176707264552/1219521412692185158.

It is hard to do a minimal repro here, but he can reproduce it consistently for certain branches that differ in the config file, so a server restart is triggered.

This PR removes throwing as a mechanism for doing the shortcircuit and instead does an early return only for warmup requests. Restarting the server may be slightly slower as more request processing are going to complete their way through the pipeline, but I don't think there will be a significant diff. It is still important to avoid processing warmup requests as these could be piling up in the server due to the eager crawling of static imports.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Copy link

stackblitz bot commented Mar 20, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev added p3-minor-bug An edge case that only affects very specific usage (priority) feat: dev dev server labels Mar 20, 2024
@patak-dev
Copy link
Member Author

We went with #16223 approach. Checkout the discussion in the PR, as we may revive this one if we see more issues in the future.

@patak-dev patak-dev closed this Mar 21, 2024
@patak-dev patak-dev deleted the fix/closed-server-error branch March 22, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: dev dev server p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant