2010/9/3 Roberto De Ioris <[email protected]>:
>>
>> How to work around this?
>>
>
> Could you post the code that spawns subprocesses ?
>
> It looks like they are spawned at the application startup, am i wrong ?
Yes you are right, I should have mentioned that. I am performing
warmup of the application before setting up the WSGI stuff, for
ensuring high availability:
def myapp(environ, start_response=None):
start_response("200 OK")
return "OK"
def warmup(app):
# Perform startup tasks, calls subprocess.Popen()
return app
cgiMode = False
if __name__ == '__main__':
cgiMode = True
CGIHandler().run(myapp)
else:
print "Loading..."
applications = {'': warmup(myapp) }
--
Jean-Baptiste Quenot
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi