[modwsgi] Re: 404 on first requests for daemon process

2012-11-10 Thread Gnarlodious
I get the same thing happening. My webapp takes a while to initialize, but meanwhile all requests get the error. Upon uploading a new version I run a curl command to make it start up, which minimizes the chance a user will get the error. I also notice that browsers are modernizing to be more

Re: [modwsgi] Re: 404 on first requests for daemon process

2012-11-10 Thread Joonas Lehtolahti
On Sat, 10 Nov 2012 16:45:33 +0200, Gnarlodious gnarlodi...@gmail.com wrote: I get the same thing happening. My webapp takes a while to initialize, but meanwhile all requests get the error. Upon uploading a new version I run a curl command to make it start up, which minimizes the chance a

Re: [modwsgi] Re: 404 on first requests for daemon process

2012-11-10 Thread Graham Dumpleton
This sounds more like you are doing lazy initialisation of application data/caches on the first request and they are not protected against access from multiple threads properly. The first thread probably does enough setup to make subsequent requests think that initialisation has completed when it