Skip Montanaro skip at
Tue Sep 28 20:25:13 CEST 2004

    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.


More information about the Python-list mailing list