summaryrefslogtreecommitdiff
path: root/src/xrep.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-14 13:34:48 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-14 13:34:48 +0100
commit43620b3d35e3f3a6e49046fdc0426651bf58dedb (patch)
tree144d680f6dec4c0773133a42900eb6acaf95282e /src/xrep.cpp
parent4405250d93a2ad6eb3940c4bc4fe8ea32bd52f9e (diff)
Multi-hop REQ/REP, part X., optional delayed creation of pipes during connect
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;