[Twisted-web] xmlrpc blocking

Rasjid Wilcox rasjidw at openminddev.net
Mon Jul 25 02:33:26 MDT 2005


I've gone through all the xmlrpc examples I can find, and I see the use of 
'defer.succeed(...)', but I'm clearly not understanding something.

When I run some code that blocks, the whole server stops responding.

I have:

def test(foo):
   print "start test"
   print foo
   print "finish test"
   return 'Success'

class Echoer(xmlrpc.XMLRPC):
    def xmlrpc_test(self):
        return defer.succeed(test('hello'))

What should I be doing instead?



Rasjid Wilcox
Melbourne, Australia (UTC +10 hrs)

More information about the Twisted-web mailing list