[Twisted-web] xmlrpc blocking

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


Hi,

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"
   sleep(5)
   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?

Thanks,

Rasjid.

-- 
Rasjid Wilcox
Melbourne, Australia (UTC +10 hrs)



More information about the Twisted-web mailing list