[Twisted-web] Are twisted xmlrpc calls non-blocking?

Christopher Armstrong radix at twistedmatrix.com
Thu Feb 8 08:24:37 CST 2007


On 2/8/07, Remi Cool <mailinglists at smartology.nl> wrote:
> Hello,
>
> I need to be able to call xmlrpc methods on a remote xmlrpc server from
> my twisted xmlrpc server.
>
> I've created the following function in my service:
>

>
> Is this call non-blocking?

It is non-blocking. If it returns a Deferred it is unlikely to be
blocking, unless the author didn't understand what the point of
Deferreds are :) Remember: Twisted tries very hard to never require
you to do any kind of thread work.

Also remember, just in case: The only Twisted API that is thread safe
is reactor.callFromThread.

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/



More information about the Twisted-web mailing list