[zeromq-dev] Terminating before receiving reply on ZMQ_REQ?

Andrei Zmievski andrei at zmievski.org
Tue Jun 19 00:50:22 CEST 2012


I have a system with a client and a server, communicating via ZeroMQ.
Client uses ZMQ_REQ socket to send requests to the server, which replies on
ZMQ_REP socket. Sometimes though, I need to terminate and exit early,
before even attempting to receive the reply, but I find that my client
blocks for several seconds before finally exiting. I assume this is because
the context is waiting on the outstanding reply message? I specified LINGER
option as 0, but it's not helping.

-Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120618/2e1e7f65/attachment.htm>


More information about the zeromq-dev mailing list