Let Python server take protocolFactory argument

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Slee 2006-10-26 04:56:40 +00:00
parent 1dd819cd2b
commit bb31d0ac43

View File

@ -85,8 +85,8 @@ class TThreadPoolServer(TServer):
"""Server with a fixed size pool of threads which service requests."""
def __init__(self, processor, serverTransport, transportFactory=None):
TServer.__init__(self, processor, serverTransport, transportFactory)
def __init__(self, processor, serverTransport, transportFactory=None, protocolFactory=None):
TServer.__init__(self, processor, serverTransport, transportFactory, protocolFactory)
self.clients = Queue.Queue()
self.threads = 10