Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
BaseHTTPServer.HTTPServer を SocketServer.ThreadingTCPServer のようにマルチスレッド化する方法はありますか?
これらのクラスの両方を使用してスレッドミックスインを使用するだけで、マルチスレッドにすることができます:)
ただし、パフォーマンスにはあまり役立ちませんが、少なくともマルチスレッドです。
from SocketServer import ThreadingMixIn from BaseHTTPServer import HTTPServer class MultiThreadedHTTPServer(ThreadingMixIn, HTTPServer): pass