Problem: REQ socket with ZMQ_REQ_RELAXED does not report ZMQ_POLLOUT when queried for events after first message.

Solution: Check for strictness before returning false if no reply has been received.
This commit is contained in:
Rolf Timmermans
2017-11-08 09:55:14 +01:00
parent b3d19ffe1a
commit c8592dfbc3
2 changed files with 20 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ bool zmq::req_t::xhas_in ()
bool zmq::req_t::xhas_out ()
{
if (receiving_reply)
if (receiving_reply && strict)
return false;
return dealer_t::xhas_out ();