GENIVI / rvi_core

Specify, design, plan and build a reference implementation of the open source infrastructure that drives next generation's connected vehicle services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deadlock in service_discovery

magnusfeuer opened this issue · comments

A deadlock occurs in service_discovery:unregister_remote_services_by_name() when it calls service_edge:unregister_remote_services while, at the same time, service_edge:handle_local_message() calls service_edge:resolve_local_service().

The solution isa to move the service_edge:unregister_remote_services() call from service_discovery to the invoking data_link_bert_rpc:handle_socket(...,unavailable,).

The same should be done for all service_discovery:unregister_single_remote_service_by_name_() and service_discovery:register_remote_services()