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

Suspend / resume handling of requests #1680

Open
floli opened this issue Sep 26, 2023 · 0 comments
Open

Suspend / resume handling of requests #1680

floli opened this issue Sep 26, 2023 · 0 comments

Comments

@floli
Copy link

floli commented Sep 26, 2023

Hello,

this is is only a question / support request.

We have an application with a number of handlers scattered through the code. The handler access objects, which are not thread safe. There is, however, a single place where updates to the object are triggered, i.e., outside of the update cycle, it's safe to access the objects used in the handlers.

I am looking for something like that:

server.pause();
update_my_objects();
server.resume();

when the server is paused, no handlers are called and incoming requests are sent to the ThreadPool.

Is something like that possible? Or do you see an alternative approach to my problem?

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants