• Frederic Tregon's avatar
    Fixed issue #1695 (ZMQ_REQ_CORRELATE) · e45dfe3b
    Frederic Tregon authored
    Problem: when using ZMQ_REQ_RELAXED + ZMQ_REQ_CORRELATE and two 'send' are
    executed in a row and no server is available at the time of the sends,
    then the internal request_id used to identify messages gets corrupted and
    the two messages end up with the same request_id. The correlation no
    longer works in that case and you may end up with the wrong message.
    
    Solution: make a copy of the request_id instance member before sending it
    down the pipe.
    e45dfe3b
zmq_setsockopt.txt 45.8 KB