SimpleXMLRPCServer
Jeremy Jones
zanesdad at bellsouth.net
Tue Sep 28 14:37:38 EDT 2004
Skip Montanaro wrote:
> Jeremy> ... the out-of-the-box SimpleXMLRPCServer will only handle one
> Jeremy> request at a time... It does not spawn a thread per request.
>
>Nor should it. Enabling threading in an application should be an active
>step taken by the programmer, not a passive step taken as a side effect of
>using a particular class that doesn't mention threading. The simplest part
>of making a server threaded is mixing in SocketServer.ThreadingMixin. Far
>more work needs to be done to make it robust.
>
>Now, should the SimpleXMLRPCServer module provide a threaded version?
>Perhaps. The default should be non-threaded however.
>
>Skip
>
>
I don't disagree at all. The example that I got from somewhere that I
still use as my base template to create a threaded XMLRPCServer is all
of 6 lines of code. It's trivial. And that could probably be trimmed
down a bit.
Jeremy
More information about the Python-list
mailing list