mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-19 17:14:26 +00:00
update(userspace/falco): use concurrent output queue in grpc server
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com> Co-authored-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
committed by
Leo Di Donato
parent
4f23b0bdfb
commit
45df07bc1b
@@ -194,7 +194,7 @@ void falco_grpc_server::run()
|
||||
|
||||
while(is_running())
|
||||
{
|
||||
sleep(1);
|
||||
sleep(1); // todo > do we want to sleep here?
|
||||
}
|
||||
|
||||
stop();
|
||||
@@ -223,9 +223,9 @@ void falco_grpc_server::stop()
|
||||
}
|
||||
}
|
||||
|
||||
bool start_grpc_server(std::string server_address, int threadiness, falco_output_response_cq& output_event_queue)
|
||||
bool start_grpc_server(std::string server_address, int threadiness)
|
||||
{
|
||||
falco_grpc_server srv(server_address, threadiness, output_event_queue);
|
||||
falco_grpc_server srv(server_address, threadiness);
|
||||
srv.run();
|
||||
return true;
|
||||
}
|
||||
|
@@ -28,8 +28,7 @@ limitations under the License.
|
||||
class falco_grpc_server : public falco_grpc_server_impl
|
||||
{
|
||||
public:
|
||||
falco_grpc_server(std::string server_addr, int threadiness, falco_output_response_cq& m_event_queue):
|
||||
falco_grpc_server_impl(m_event_queue),
|
||||
falco_grpc_server(std::string server_addr, int threadiness):
|
||||
m_server_addr(server_addr),
|
||||
m_threadiness(threadiness)
|
||||
{
|
||||
@@ -50,7 +49,7 @@ private:
|
||||
std::vector<std::thread> m_threads;
|
||||
};
|
||||
|
||||
bool start_grpc_server(std::string server_address, int threadiness, falco_output_response_cq& output_event_queue);
|
||||
bool start_grpc_server(std::string server_address, int threadiness);
|
||||
|
||||
class request_context_base
|
||||
{
|
||||
|
Reference in New Issue
Block a user