Well, earlier today, PythonAnywhere was unreachable for me and for the LSL scripts of mine that connect with my app.
What I'm doing is using Python Anywhere as a transient cache for URL data. The LSL language (Linden Scripting Language) is for objects in Second Life, InWorldz, OpenSimulator, and similar systems. Each script can obtain a URL, though the URL is ultimately transient (it will eventually expire, such as if a simulator or the script restarts). So, I am using PythonAnywhere to act as an external cache for the URL's, so that my objects can communicate with each other.
Even after connectivity was re-established, however, it was nearly two hours before my LSL scripts were able to re-establish contact with my python application. It wasn't until I manually shut down every single script and then restarted them one-by-one that normal functionality was restored.
From what I can tell, this may be a flaw in the Flask framework, which in my experience tends to choke whenever it gets hit by multiple requests simultaneously.
Does anyone know of a solution that I can use? Is threading an option?