[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?

Torsten Wierschin torsten.wierschin at gmail.com
Sun Oct 9 09:48:29 CEST 2022


Yuri <yuri at rawbw.com> schrieb am Sa., 8. Okt. 2022, 20:46:

> 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.
>
I agree.

The scenerio is:
- connection established and working
- server now vanishes unintentionally
- client side is not able to reestablish connection iff server reappears



>
> 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
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20221009/b0dac57d/attachment.htm>


More information about the zeromq-dev mailing list