[Xapian-tickets] [Xapian] #185: Deadlocks with apache mod_python and mod_wsgi

Xapian nobody at xapian.org
Wed Apr 29 15:07:52 BST 2009


#185: Deadlocks with apache mod_python and mod_wsgi
-----------------------------+----------------------------------------------
 Reporter:  richard          |        Owner:  olly     
     Type:  defect           |       Status:  assigned 
 Priority:  normal           |    Milestone:  1.1.1    
Component:  Xapian-bindings  |      Version:  SVN trunk
 Severity:  normal           |   Resolution:           
 Keywords:                   |    Blockedby:           
 Platform:  All              |     Blocking:           
-----------------------------+----------------------------------------------
Changes (by olly):

  * status:  new => assigned


Comment:

 No deadlocks with mod_python or mod_wsgi, even when subclassing a
 matchdecider in python and calling it from the matcher.  I used Python
 2.6.

 I guess we don't know if this fixes the issues with Python 2.3, but
 otherwise we're looking good here.

 The main_interpreter stuff is still required currently.  I think this
 restriction can be removed without hacking SWIG further - you can override
 what SWIG uses in the blocking/allowing thread begin/end boilerplate, so I
 think someone who understands the python threading stuff better than me
 "just" needs to write suitable replacements which store the interpreter in
 thread local storage and then we can plug them in.

-- 
Ticket URL: <http://trac.xapian.org/ticket/185#comment:38>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list