Commit 8f85f9b 1 parent 6cb1dc7 commit 8f85f9b Copy full SHA for 8f85f9b
File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,14 @@ void zqrpc::RpcServer::Start(std::size_t noof_threads)
109
109
110
110
void zqrpc::RpcServer::Close ()
111
111
{
112
+ /* *
112
113
// delete all methods
113
114
for (RpcMethodMapT::iterator it = rpc_method_map_.begin(); it != rpc_method_map_.end();) {
114
115
RpcMethod *rpc_method = it->second;
115
116
++it;
116
117
delete rpc_method;
117
118
}
119
+ */
118
120
// unbind , inprocs cannot be unbound
119
121
if (started_) {
120
122
DLOG (INFO) << " server close called, started " << started_ << std::endl;
Original file line number Diff line number Diff line change @@ -113,5 +113,12 @@ void zqrpc::RpcWorker::operator() ()
113
113
delete response;
114
114
socket.disconnect (ZQRPC_INPROC_WORKER);
115
115
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
+ */
116
123
DLOG (INFO) << boost::this_thread::get_id () << " :end: " << std::endl;
117
124
}
You can’t perform that action at this time.
0 commit comments