Closed easytarget closed 2 years ago
Humm. Turns out all I reaaly needed was the ThreadedBaseHTTPServer.
But that opened up a can of mutex-locking worms, python-rrdtool does not play well with threading.
I used the threading modules Lock
class to solve the issues and only render one graph at a time, and the server is faster and now handles multiple connections without a problem.
Display animations etc remain fast.. appears to be the basic http server being horribly 'one connection', one thread, slow.. Maybe try: https://docs.gunicorn.org/en/stable/