iceoryx2 icon indicating copy to clipboard operation
iceoryx2 copied to clipboard

Recreated service shall connect with existing ports

Open elfenpiff opened this issue 4 months ago • 2 comments

Brief feature description

When a service object (PortFactory) goes out of scope, the service can no longer be found, but all existing ports are able to continue communication. When now the same service is created again, it fails since old ports and the dynamic service info is still existing.

Two approaches are possible.

  1. Remove the dynamic service info and create new ports that no longer are connected to the old existing ports - may surprise the user.
  2. Verify that the dynamic service info belongs to a former service with the identical configuration, and reuse it again. Would allow the newly created service to create ports that can communicate with the existing ones.

Detailed information

To verify that the service has the identical static service configuration, we need to hash the object and compare the hashes. If they are equal, the dynamic service info can be reused. This also means that the hash must be stored in the dynamic service info.

elfenpiff avatar Feb 28 '24 09:02 elfenpiff