Replies: 2 comments
-
Hi, Indeed it seems there is an issue there, as a MixIn should always be before the base class. Thanks for the feedback |
Beta Was this translation helpful? Give feedback.
-
Hi, After looking at the code, the order of inheritance doesn't really matter as the method overridden by the Mixin are themselves overridden by the That being said, I'll change the order of inheritance to be coherent with what it should be. |
Beta Was this translation helpful? Give feedback.
-
Hello,
first of all, thanks for the library.
I tried to use PooledJSONRPCServer but it didn't seem to work as expected.
Could it be because socketserver.ThreadingMixIn should precede SimpleJSONRPCServer in inheritance order?
Then I created my own ThreadedJSONRPCServer inheriting from SimpleJSONRPCServer and socketserver.ThreadingMixIn and I verified that socketserver.ThreadingMixIn must come first to have multi-threaded behaviour.
Roberto
cfr.:
https://docs.python.org/3/library/socketserver.html#:~:text=The%20mix%2Din%20class%20comes%20first%2C%20since%20it%20overrides%20a%20method%20defined%20in%20UDPServer.%20Setting%20the%20various%20attributes%20also%20changes%20the%20behavior%20of%20the%20underlying%20server%20mechanism.
Beta Was this translation helpful? Give feedback.
All reactions