#10470: Core handlers are not threadsafe
-------------------------------------+--------------------------------------
          Reporter:  tdterry         |         Owner:  tdterry                  
                
            Status:  assigned        |     Milestone:                           
                
         Component:  Core framework  |       Version:  1.0                      
                
        Resolution:                  |      Keywords:  wsgi, basehandler, 
mod_python, threadsafe
             Stage:  Unreviewed      |     Has_patch:  1                        
                
        Needs_docs:  0               |   Needs_tests:  0                        
                
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by shai):

 May I suggest a minor improvement to the patch: Instead of assigning to
 the _request_middleware last, just use tuple assignment to assign them all
 together, i.e.
 {{{
  self._request_middleware, self._view_middleware,
 self._response_middleware, self._exception_middleware = \
       _request_middleware,      _view_middleware,
 _response_middleware,      _exception_middleware
 }}}

 This way you don't need to make assumptions about the users.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10470#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to