summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/BrokerFixture.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-06-13 17:45:56 +0000
committerGordon Sim <gsim@apache.org>2013-06-13 17:45:56 +0000
commit97e2c0bf40f0876c7b609d4959a91fdc875fa295 (patch)
treec50de0a20d00bf333ee6d14ef9768dc49916bc9b /qpid/cpp/src/tests/BrokerFixture.h
parent8e6ba3842d910bdd3daacdfa45bcce0ab40e8f14 (diff)
downloadqpid-python-97e2c0bf40f0876c7b609d4959a91fdc875fa295.tar.gz
NO-JIRA: restrict broker to listen only on loopback interface (which is all that gets used by clients) in order to avoid port collisions
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1492778 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
-rw-r--r--qpid/cpp/src/tests/BrokerFixture.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h
index 4ce8315c15..bc23867ee1 100644
--- a/qpid/cpp/src/tests/BrokerFixture.h
+++ b/qpid/cpp/src/tests/BrokerFixture.h
@@ -56,6 +56,7 @@ struct BrokerFixture : private boost::noncopyable {
qpid::log::Logger::instance().configure(logOpts);
}
opts.port=0;
+ opts.listenInterfaces.push_back("127.0.0.1");
// Management doesn't play well with multiple in-process brokers.
opts.enableMgmt=enableMgmt;
opts.workerThreads=1;