I believe the REQ will simply wait for the REP to come back up, re-bind and send something.
On Fri, Dec 13, 2013 at 2:53 PM, Mohit Jaggi <[email protected]> wrote: > Hi, > In most ZMQ sockets, the underlying TCP socket can change transparently. > Does that apply to REQ-REP sockets as well? Or will the receive call to ZMQ > socket fail? > > sock = new REQ socket; > connect(sock); > while(1) { > request = receive(...); > ... > send(response); > } > > For example in the above code, let us say that the server with REP socket on > the other side crashed and restarted. What will happen? > > Thanks, > Mohit. > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
