From b41036aa2ab881afe57bfecaf658919b02d504f7 Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Thu, 5 Apr 2012 01:01:50 +0200 Subject: [PATCH] Flush identity message for inproc transport The scoket implementation for inproc transfer failed to flush identity message. The result was that the identity message was not delivered until after the user sent the first message. The identity message was never delivered if the user used the socket only to receive messages. --- src/socket_base.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 8ac39bca..39d25c42 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -434,6 +434,7 @@ int zmq::socket_base_t::connect (const char *addr_) id.set_flags (msg_t::identity); bool written = pipes [0]->write (&id); zmq_assert (written); + pipes [0]->flush (); } // Attach remote end of the pipe to the peer socket. Note that peer's