Hello all, 

I'm hoping to get some assistance on this.

Issue:
A user can upload a shapefile to the django application once upon a fresh 
apache restart.  Any subsequent shapefile upload by any other user results in 
the server not giving any response back to the client.  Other uploads go 
through fine.  Shapefile uploads make use of GDAL (in particular, the code will 
hang on a call to OGRGeometry.transform), other uploads do not.  

What I think is happening:
A python thread will hang whenever a user uploads a shapefile (and thus calling 
a GDAL library function), given that another thread has previously used a GDAL 
function.  

What I've done so far:
>From the geodjango documentation 
>(https://docs.djangoproject.com/en/1.4/ref/contrib/gis/deployment/), no 
>threading should be used for webserver deployment as GDAL is not thread safe.  
>However, since I'm using apache on windows, it appears that the mpm used 
>creates multiple threads for each request
http://httpd.apache.org/docs/2.2/mod/mpm_winnt.html

My question:  Is there any way to use apache on windows for geodjango 
applications?  I'm assuming my problem will be solved if I can have each 
request be handled by a separate process - are there any other webservers that 
I should look into?  I'd prefer solutions that would work on Windows.

Relevant software used: 
Windows Server 2008 R2
Apache HTTP Server version 2.2.22
GDAL/OGR 1.9.1
Django 1.4
MapServer CGI 6.0.3

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3MCkF0uQZM4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to