Thrift: generate Processors not Servers
Summary: Because the gen'd code isn't actually a server
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664794 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/cpp/src/TestServer.cc b/test/cpp/src/TestServer.cc
index f743aea..f2f9eca 100644
--- a/test/cpp/src/TestServer.cc
+++ b/test/cpp/src/TestServer.cc
@@ -332,7 +332,7 @@
shared_ptr<TestHandler> testHandler(new TestHandler());
- shared_ptr<ThriftTestServer> testServer(new ThriftTestServer(testHandler, binaryProtocol));
+ shared_ptr<ThriftTestProcessor> testProcessor(new ThriftTestProcessor(testHandler, binaryProtocol));
// Transport
shared_ptr<TServerSocket> serverSocket(new TServerSocket(port));
@@ -346,7 +346,7 @@
if (serverType == "simple") {
// Server
- TSimpleServer simpleServer(testServer,
+ TSimpleServer simpleServer(testProcessor,
serverSocket,
transportFactory,
serverOptions
@@ -367,7 +367,7 @@
threadManager->start();
- TThreadPoolServer threadPoolServer(testServer,
+ TThreadPoolServer threadPoolServer(testProcessor,
serverSocket,
transportFactory,
threadManager,