[zeromq-dev] will receive fail if TCP goes down in REQ socket
Sean Robertson
sprobertson at gmail.com
Sat Dec 14 01:17:27 CET 2013
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 <mohitjaggi at gmail.com> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list