diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-06-19 15:30:50 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-06-19 15:30:50 +0000 |
| commit | da9d2156e3137a9575aa0f7b1dc7d52dc4908737 (patch) | |
| tree | 68b910671eaaac784ca9a3837ab0466fa64e277a /cpp/src/qpid/sys/TCPIOPlugin.cpp | |
| parent | 56e808fda39091678bfa4db8d9ef9a0148898c28 (diff) | |
| download | qpid-python-da9d2156e3137a9575aa0f7b1dc7d52dc4908737.tar.gz | |
QPID-4931: Only allow broker to listen to a single address if "--port 0" specified
- If more than one address is specified or implied by the defaults the broker
will log a warning
- This is intended to avoid testing problems where the broker fails to connect
to the port of subsequent listening addresses
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1494656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/TCPIOPlugin.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/TCPIOPlugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/TCPIOPlugin.cpp b/cpp/src/qpid/sys/TCPIOPlugin.cpp index 0910cbef20..cd941eb2f6 100644 --- a/cpp/src/qpid/sys/TCPIOPlugin.cpp +++ b/cpp/src/qpid/sys/TCPIOPlugin.cpp @@ -47,7 +47,7 @@ static class TCPIOPlugin : public Plugin { if (broker->shouldListen("tcp")) { SocketAcceptor* aa = new SocketAcceptor(opts.tcpNoDelay, false, opts.maxNegotiateTime, broker->getTimer()); ta.reset(aa); - port = aa->listen(opts.listenInterfaces, boost::lexical_cast<std::string>(opts.port), opts.connectionBacklog, &createSocket); + port = aa->listen(opts.listenInterfaces, opts.port, opts.connectionBacklog, &createSocket); if ( port!=0 ) { QPID_LOG(notice, "Listening on TCP/TCP6 port " << port); } |
