[mod_python] Using Twisted inside mod_python

jarrod roberson jarrod.roberson at gmail.com
Fri May 6 01:49:11 EDT 2005


On 5/5/05, Damjan <gdamjan at mail.net.mk> wrote:
> 
> > I have it running from a PythonImport and attaching to an interpreter 
> and
> > all that goodness.
> > It prints out all the queries and answers it received to the apache log 
> just
> > fine. Apache works just fine serving normal stuff.
> >
> > The problem is anytime I make any kind of method calls into my global 
> object
> > from a handler it just hangs Apache2 :-(
> 
> I have no idea what your code does, but one thing I thought maybe
> happens is this:
> http://spyced.blogspot.com/2005/04/how-well-do-you-know-python-part-5.html
> 
> nope this is not the problem since the import runs the Twisted reactor 
> code fine, and Apache behaves just fine
> that is until I make a call into the object I have exposed. I do think it 
> is a threading issue, because it writes to the req output and hangs then.
> when I kill Apache it sometimes prints partial results to the browser 
> sometimes nothing.
> it never prints anything to the Apache error log that I can figure out 
> what is wrong, it always has something to do with the req.write() call
> 
> the Twisted code continues to run and spew things out to the Apache error 
> log even when it hangs, it is strange, it is more like Apache is hanging 
> than the Twisted part now that I think about it more.
> 
> If I can get the time I will bundle up the code ( which is very little ) 
> and post it to see if any one can point out a stupid mistake or anything.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050506/a70d2722/attachment.html


More information about the Mod_python mailing list