Hi Victor,
2018-04-06 17:44 GMT+02:00 DUMAS, Victor <[email protected]>: > In order to not block forever each socket has sending and receiving > timeouts. In case those timeouts are reached the sockets are destroyed and > recreated. > this statement has triggered my attention: why would you do that ? ZMQ sockets are meant to be long-lived objects from my understanding and if something bad happens at networking level (somebody pulls off the cable) they will automatically reconnect using ZMQ background threads once network connectivity is restored... I think that in your scenario destroying the sockets and recreating them is not really needed and does not really help: just keep retrying or (if you're using TCP transport and you have timeouts big enough) you can simply provide an error message of some kind (e.g. network failure)... Just my 2 cents, Francesco
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
