Il giorno 15/set/2010, alle ore 22.34, Dan Breslau ha scritto:

> (I'd meant to add a ? at the end of my Subject: line. I don't know that this 
> is a race condition, but it sure seems to be one.)
> 
> Also, I'd forgotten about seeing this message on the Cherokee email list 
> (password required) : 
> http://lists.octality.com/private/cherokee/2010-August/013339.html
> 
> In that message, Roberto wrote:
> 
> 
> You are running the development version of uWSGI that got a rewrite of 
> SCRIPT_NAME/PATH_INFO handling that is still not complete.
> 
>  
> 
> Rewrite your xml file in this way (this way is full backward compatible with 
> the current stable versions)
> 
>  
> 
> <uwsgi>
> 
> 
>       <pythonpath>/var/www/streamy/</pythonpath>
> 
> 
>       <pythonpath>/var/www/</pythonpath>
> 
> 
>        <module>django_wsgi</module>
> 
> 
> </uwsgi>
> 
> 
> I tried this just now, and it worked too. I'd overlooked it because I wasn't 
> using the dev version, but the released 0.9.6; so I wasn't sure if Roberto's 
> suggestion applied to my situation.
> 
> My original uwsgi.xml file looked like this:
> 
> <uwsgi>
>     <pythonpath>/home/cherokee/django</pythonpath>
>     <pythonpath>/home/cherokee/django/mysite</pythonpath>
>     <pythonpath>/var/www/</pythonpath>
>     <app mountpoint="/">
>         <script>django_wsgi</script>
>     </app>
> </uwsgi>
> 
> and the new version:
> 
> <uwsgi>
>     <pythonpath>/home/cherokee/django</pythonpath>
>     <pythonpath>/home/cherokee/django/mysite</pythonpath>
>     <pythonpath>/var/www/</pythonpath>
>     <module>django_wsgi</module>
> </uwsgi> 
> 
> However, if the old syntax is still officially supported, and if there's a 
> chance that the same race condition exists in the new code (assuming it *was* 
> a race condition) then I'd suggest that this needs some further 
> investigation. I'll be glad to help if I can.
> 
> -- Dan
> 


Hi Dan, we are now at 0.9.6.2. In the 0.9.6.1 we introduced -Wextra (and -O2) 
that focuses a couple of uncorrectly initialized variables (one for script_name
and another in the snmp server). This kind of problem are no more thanks to a 
more aggressive compiler policy.

About the xml configurations, they are both supported.

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to