Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Events do not work when subscribing to events with FQDN containing localhost or network aliases or multiple network interfaces ... #315

@bourtemb

Description

@bourtemb

This issue is described in the following Tango forum topic:
http://www.tango-controls.org/community/forum/c/development/python/event-system-problem

The events do not work as expected when a client subscribe to events using FQDN starting with localhost or when there are multiple network interfaces or aliases.

The symptom is that events are not received and the client gets an exception once every 10 seconds due to the heartbeat timeout. The origin of the problem is that the server and client separately generate the event fliter name used by zmq. Because the client and server are on different hosts potentially or in different languages they resolve the hostname differently and therefore have different zmq filters. The solution is for the client to use the same zmq filter as they server.

A workaround is to use the real machine name instead of localhost.

This was reproduced in C++.
To be checked in Java too.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions