• Luca Boccassi's avatar
    Problem: zmq_ctx_term asserts with connect-before-bind and sockets with identity… · fab846a5
    Luca Boccassi authored
    Problem: zmq_ctx_term asserts with connect-before-bind and sockets with identity over inproc transport
    
    Solution: check if the connecting inproc socket has been closed
    before trying to send the identity.
    Otherwise the pipe will be in waiting_for_delimiter state causing
    writes to fail and the connect to assert when the context is being
    torn down and the pending inproc connects are resolved.
    Add test case that covers this behaviour.
    fab846a5
test_inproc_connect.cpp 13.4 KB