Hi, indeed I tried to use twisted and finally it worked! I simply installed PasteScript and Twisted and changed a line in the server section of the myproj.ini:
[server:main] use = egg:PasteScript#twisted On Thu, 2009-09-10 at 12:51 -0400, Chris McDonough wrote: > The output of the threads debug middleware you put up at > http://pastebin.org/16704 looks more or less normal to me. You might > try a different WSGI HTTP server to see if that has any effect. > > - C > > simahawk wrote: > > Thank you Tim! > > > > It seems the only thing I can do is try to use twisted. Am I wrong? > > > > BTW I tried repoze.debug and this is the result: > > http://pastebin.org/16704 > > > > 10 threads waiting for something... > > > > > > On Thu, 2009-09-10 at 09:02 +0800, Tim Hoffman wrote: > >> I found that if you run zope3 server under paste you get the same > >> thing, whereas if you use twisted > >> it works fine. See this thread I posted last year. > >> > >> https://mail.zope.org/pipermail/zope3-users/2008-October/008261.html > >> > >> T > >> > >> On Wed, Sep 9, 2009 at 11:32 PM, simahawk<simah...@gmail.com> wrote: > >>> hi list, > >>> > >>> I created a web-service with repoze.bfg and repoze.bfg.xmlrpc with a > >>> xmlrpx_view. This views creates a PDF and it should return me a simple > >>> string with the url of the PDF but in order to get my string back I need > >>> to restart repoze 'cause the application hangs at some point after the > >>> view returns the string. > >>> > >>> I went trough the code with pdb and I found that the application hangs > >>> on the method "worker_thread_callback" in > >>> Paste-1.7.2-py2.6.egg/paste/httpserver.py > >>> > >>> I tried to make the view returning the string directly and it works... > >>> so it seems it doesn't like processing stuff in the meanwhile... :) > >>> > >>> In other word, this works: > >>> > >>> [...] > >>> @xmlrpc_view > >>> def generate_report(context, data): > >>> url = 'http://foo.com/static/file.pdf' > >>> return url > >>> [...] > >>> > >>> whilst this don't: > >>> > >>> [...] > >>> @xmlrpc_view > >>> def generate_report(context, data): > >>> do_this > >>> [...] > >>> do_that > >>> url = 'http://foo.com/static/file.pdf' > >>> return url > >>> [...] > >>> > >>> It's a bit weird... any suggestion will be much appreciated. > >>> > >>> Thanks, > >>> SimO > >>> > >>> _______________________________________________ > >>> Repoze-dev mailing list > >>> Repoze-dev@lists.repoze.org > >>> http://lists.repoze.org/listinfo/repoze-dev > >>> > >> _______________________________________________ > >> Repoze-dev mailing list > >> Repoze-dev@lists.repoze.org > >> http://lists.repoze.org/listinfo/repoze-dev > > > > _______________________________________________ > > Repoze-dev mailing list > > Repoze-dev@lists.repoze.org > > http://lists.repoze.org/listinfo/repoze-dev > > > _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev