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

Stop a Tide server (not graceful shutdown) #876

Open
mleonhard opened this issue Mar 1, 2022 · 1 comment
Open

Stop a Tide server (not graceful shutdown) #876

mleonhard opened this issue Mar 1, 2022 · 1 comment

Comments

@mleonhard
Copy link

I need to run a Tide server in tests. Each test starts a server, performs some checks, and stops the server. How can one shut down a running Tide server?

The easiest thing is to drop the executor. Tide uses async-std which uses async_global_executor. I couldn't figure out how to drop the global executor.

This is not a request for graceful shutdown #528.

Meta comment: Tide's framework style makes it cumbersome to do anything that is not built-in. I wish Tide was modular. For example, I want to do my own routing. But it would be helpful to have a stand-alone way to parse urls into variables. I also need handlers to return a custom error type. The top level handler must perform logging and translate errors into appropriate responses. All of this is hard to do with Tide. Tide's mono-lithic design also makes debugging extremely difficult. I really need an async version of rouille.

@jbr
Copy link
Member

jbr commented Mar 2, 2022

You might like https://trillium.rs, which has modularity as a core priority. Tide is more of a "batteries included," opinionated framework

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