zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.75k stars 2.36k forks source link

Extend Socket Monitor For Events From Router #3261

Open smalls12 opened 6 years ago

smalls12 commented 6 years ago

After discussions in #3213, decided that this could use its own thread for discussions.

3213 provided a new feature that would allow a ROUTER socket detect when a DEALER disconnects.

The idea was floated about how this could be integrated into the socket monitor as this is its primary function.

The socket monitor can already process events from the ROUTER socket, but does not currently provide some sort of mechanism to identify which DEALER that event is for.

sigiesec commented 5 years ago

The recently added v2 monitoring events now allow identifying the connection an event is referring to showing both the source and destination (e.g. TCP) addresses, however it does not (yet) contain the routing id. The event format is now more flexible, so this information could be added.

smalls12 commented 5 years ago

Hi @sigiesec,

Just wondering if this has been taken any further re: adding routing id. Is there any particular place I should start looking to see how difficult it would be to add it in?

Thanks :)