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/rep.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rep.cpp') diff --git a/src/rep.cpp b/src/rep.cpp index b6bffae..8c5b86c 100644 --- a/src/rep.cpp +++ b/src/rep.cpp @@ -32,6 +32,11 @@ zmq::rep_t::rep_t (class app_thread_t *parent_) : { options.requires_in = true; options.requires_out = true; + + // We don't need immediate connect. We'll be able to send messages + // (replies) only when connection is established and thus requests + // can arrive anyway. + options.immediate_connect = false; } zmq::rep_t::~rep_t () -- cgit v1.2.3