From 43620b3d35e3f3a6e49046fdc0426651bf58dedb Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 14 Feb 2010 13:34:48 +0100 Subject: Multi-hop REQ/REP, part X., optional delayed creation of pipes during connect --- src/xrep.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xrep.cpp') 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; -- cgit v1.2.3