diff options
author | Nate Goergen <nate.goergen.gitlab1@mile10.com> | 2015-03-03 21:03:47 -0600 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-04-02 15:38:57 -0700 |
commit | 58f09d65209c54ed5ae9c471d71ee6168bfeaf32 (patch) | |
tree | 72874358c7d98425a64a1e38317d9f5f836c8e6c /gnuradio-runtime/lib/controlport | |
parent | 075dc8166f7c7462fe5ac830cdccd90df5496a50 (diff) |
controlport: changing the default port number on the Thrift interface to zero.
This allows allows the OS - specifically bind() - to select an
ephemeral / unused port number.
Next, going to investigate using getsockname() to determine the port
number selected by the OS and ensure that the Thrift endpoint string
reflects the correct port number.
Also going to see if we can publish the actual hostname of the machine
from either the uname() or gethostname() functions.
Diffstat (limited to 'gnuradio-runtime/lib/controlport')
-rw-r--r-- | gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc b/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc index 4be978bc3b..b76ce775ce 100644 --- a/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc +++ b/gnuradio-runtime/lib/controlport/thrift/rpcserver_booter_thrift.cc @@ -58,7 +58,7 @@ rpcserver_booter_thrift::endpoints() } template<typename TserverBase, typename TserverClass> -const unsigned int thrift_application_base<TserverBase, TserverClass>::d_default_thrift_port(9090U); +const unsigned int thrift_application_base<TserverBase, TserverClass>::d_default_thrift_port(0U); template<typename TserverBase, typename TserverClass> const unsigned int thrift_application_base<TserverBase, TserverClass>::d_default_num_thrift_threads(10U); |