Ok, this will be complicated.
Recently moving to Python3,
Running mod_wsgi from apache,
We needed to add:
WSGIApplicationGroup %{GLOBAL}
due to third party code (numpy, lxml). This means that requests are served
by primary python process
WSGIDaemonProcess wsgi_app_ssl processes=10 threads=1
python-path="/path_to_venv..."
WSGIProcessGroup wsgi_app_ssl
We then have some scripts:
WSGIScriptAlias /service/review_v2
/path/doServiceRequest_review.wsgi
WSGIScriptAlias /service/status_update_tasks_v2
/path/doServiceRequest_ctl_v2.wsgi
.....
Application handling is a standard
from webob import Request, Response
def __call__(self, environment, responseApplication):
myRequest = Request(environment)
.....
After a single request is processed with a file that is being uploaded in
a FieldStorage
The issue is that after the request, the file descriptor is still open, but
deleted (using lsof).
This file appears to be open in every process.of httpd. (same filename).
a) Is the apache configuration correct in this case?
b) Am I missing something here - i.e. is WebOB at fault here?
WebOB uses cgi - which has a cleanup __del__ which is supposed to close the
file - but.I have not debugged down that far....
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/modwsgi/20100413-11a1-4ace-9639-19bda3e4df75n%40googlegroups.com.