[zeromq-dev] will receive fail if TCP goes down in REQ socket
Mohit Jaggi
mohitjaggi at gmail.com
Fri Dec 13 23:53:25 CET 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131213/48842f52/attachment.htm>
More information about the zeromq-dev
mailing list