|
@@ -82,6 +82,16 @@ void grpcfwclient::threadrpc()
|
|
|
|
|
|
stub_ = iv::CommonRPC::NewStub(channel);
|
|
stub_ = iv::CommonRPC::NewStub(channel);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(status.error_code() == 14)
|
|
|
|
+ {
|
|
|
|
+ std::cout<<" Code 14, Create New stub_"<<std::endl;
|
|
|
|
+ channel = grpc::CreateCustomChannel(
|
|
|
|
+ target_str, grpc::InsecureChannelCredentials(),cargs);
|
|
|
|
+
|
|
|
|
+ stub_ = iv::CommonRPC::NewStub(channel);
|
|
|
|
+ }
|
|
|
|
+
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(900));
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(900));
|
|
|
|
|
|
}
|
|
}
|