wspbus.py wait() calls publish during the wait cycle #1758
I'm submitting a ...
Do you want to request a feature or report a bug?
I'm reporting a bug.
What is the current behavior?
CherryPy server started through
If the current behavior is a bug, please provide the steps to reproduce and if possible a screenshots and logs of the problem. If you can, show us your code.
I noticed it when installing and running wok, which uses cherrypy as its backend. Just install this software, start the daemon, then visit the page once and watch the CPU usage for the main process shoot to 100%. I imagine a minimal version of this using a basic "quickstart"-like python script would also exhibit the same behavior.
What is the expected behavior?
The server utilizes minimal CPU usage when not serving requests.
What is the motivation / use case for changing the behavior?
The service should not consume CPU when it isn't doing anything.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, e.g. stackoverflow, gitter, etc.)
The text was updated successfully, but these errors were encountered: