Is SimpleXMLRPCServer single-threaded?

Possible duplicate:
Python XMLRPC with parallel queries

I am writing a python application that will act as an xml-rpc server using the SimpleXMLRPCServer class.

Now my question is: what happens if 2 or more clients send a request at the same time? Are they queued? Do I have a guarantee that if two clients call the same or different functions, they are performed one after the other and not at the same time?

+3
source share
2 answers

I believe that the library implementation is SimpleXMLRPCServerreally single-threaded. You must add mixin so that it will execute requests in multithreaded mode:

from SocketServer import ThreadingMixIn
from SimpleXMLRPCServer import SimpleXMLRPCServer

class MyXMLRPCServer(ThreadingMixIn, SimpleXMLRPCServer):
    """..."""
+7
source

XML-RPC ( , ), Pythomnic.

+1

Source: https://habr.com/ru/post/1792884/


All Articles