summaryrefslogtreecommitdiff
path: root/src/xrep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xrep.cpp')
-rw-r--r--src/xrep.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index 9462a60..328a832 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -28,6 +28,10 @@ zmq::xrep_t::xrep_t (class app_thread_t *parent_) :
options.requires_in = true;
options.requires_out = true;
+ // On connect, pipes are created only after initial handshaking.
+ // That way we are aware of the peer's identity when binding to the pipes.
+ options.immediate_connect = false;
+
// XREP socket adds identity to inbound messages and strips identity
// from the outbound messages.
options.traceroute = true;