Skip to content

Commit 8f85f9b

Browse files
committed
Thu Dec 11 00:44:17 IST 2014
1 parent 6cb1dc7 commit 8f85f9b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/RpcServer.cc

+2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ void zqrpc::RpcServer::Start(std::size_t noof_threads)
109109

110110
void zqrpc::RpcServer::Close()
111111
{
112+
/**
112113
// delete all methods
113114
for (RpcMethodMapT::iterator it = rpc_method_map_.begin(); it != rpc_method_map_.end();) {
114115
RpcMethod *rpc_method = it->second;
115116
++it;
116117
delete rpc_method;
117118
}
119+
*/
118120
// unbind , inprocs cannot be unbound
119121
if (started_) {
120122
DLOG(INFO) << "server close called, started " << started_ << std::endl;

src/RpcWorker.cc

+7
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,12 @@ void zqrpc::RpcWorker::operator() ()
113113
delete response;
114114
socket.disconnect(ZQRPC_INPROC_WORKER);
115115
socket.close();
116+
/**
117+
for (RpcMethodMapT::iterator it = rpc_method_map_.begin(); it != rpc_method_map_.end();) {
118+
RpcMethod *rpc_method = it->second;
119+
++it;
120+
delete rpc_method;
121+
}
122+
*/
116123
DLOG(INFO) << boost::this_thread::get_id() << ":end: " << std::endl;
117124
}

0 commit comments

Comments
 (0)