Open defnull opened 9 years ago
IMO this should be fixed inside the standar library itself in WSGIServer code. It's not a problem with bottle.py per se. I don't know why the standard library works with this simplistic, synchronus implmentation by default for web servers where it is usually safe to work with forks and threads, unless some state data is stored in-memory, but this is usually not the case in web apps. In web apps, data is usually stored and retrieved from databases or files. Just my two cents.
I would be very interested in knowing what things wouldn't work with the default server ? I might be overlooking things.
After reading this: http://ychaouche.wikispot.org/HowBottleAppsWork
Pro: You don't run into the one-request wall while developing long polling stuff. Con: You run into the wall later because you think everything works with the default server.
Thoughts?