#4909: WSGIHandler is not threadsafe
------------------------------+---------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  jacob        
  Status:  new                |   Component:  Uncategorized
 Version:  SVN                |    Keywords:               
   Stage:  Unreviewed         |   Has_patch:  0            
------------------------------+---------------------------------------------
 The __call__ method of WSGIHandler is called from multiple threads,
 however there code that checks for the middleware being setup is not
 thread safe.
 
 {{{if self._request_middleware is None:
             self.load_middleware()}}}
 
 Multiple threads can launch into load_middleware at once, leading to
 corrupt lists.
 
 The attached patch uses a lock to protect the middleware loading if it's
 required.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4909>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to