[zeromq-dev] How to tell from an exception thrown by recv_string() if this exception is for the listening socket or for the client socket?

Yuri yuri at rawbw.com
Sat Oct 8 20:43:30 CEST 2022


On 10/8/22 07:09, orzodk wrote:
> My understanding of ZMQ is that the implementation details of the "under
> the hood" socket are hidden from you intentionally. I'm not sure how one
> would catch that. Hopefully someone else can answer.


But the abstraction level is too deep and it prevents access to 
important and relevant information.


If there is a TCP server, an error on the listening socket should lead 
to process termination because the listening socket is potentially 
permanently dysfunctional. But an error on a client socket can 
potentially be tolerated.


As far as I can see, ZMQ doesn't allow such error handling.



Yuri



More information about the zeromq-dev mailing list