shangma / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Disable by default WSGI script file reloading in embedded mode. #318

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Allowing reload in same process space can actually cause issues if a function 
in that scope is registered with code outside of the WSGI script file.

For example, atexit.register() of callback will see callback fail when called, 
if WSGI script had been reloaded. This is because any global data in WSGI 
script file would have been destroyed and wouldn't be accessible any more.

Original issue reported on code.google.com by Graham.Dumpleton@gmail.com on 29 Apr 2014 at 11:41