[ https://issues.apache.org/jira/browse/THRIFT-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236932#comment-14236932 ]
ASF GitHub Bot commented on THRIFT-2838: ---------------------------------------- GitHub user nsuke opened a pull request: https://github.com/apache/thrift/pull/306 THRIFT-2838 TNonblockingServer can bind to port 0 (i.e., get an OS-assig... ...ned port) but there is no way to get the port number You can merge this pull request into a Git repository by running: $ git pull https://github.com/nsuke/thrift THRIFT-2838 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/306.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #306 ---- commit 1f8be0cdb691a0bc56a60650b3d7e6e619516d70 Author: Nobuaki Sukegawa <nsu...@gmail.com> Date: 2014-12-06T18:17:01Z THRIFT-2838 TNonblockingServer can bind to port 0 (i.e., get an OS-assigned port) but there is no way to get the port number ---- > TNonblockingServer can bind to port 0 (i.e., get an OS-assigned port) but > there is no way to get the port number > ---------------------------------------------------------------------------------------------------------------- > > Key: THRIFT-2838 > URL: https://issues.apache.org/jira/browse/THRIFT-2838 > Project: Thrift > Issue Type: Wish > Components: C++ - Library > Affects Versions: 0.9.2 > Reporter: Henrique Andrade > > While providing port 0 to the TNonblockingServer (C++ edition) allows the OS > to assign any port that is available (this part actually works), there is no > API to retrieve the port that was assigned. At least, I wasn't able to find > one... > This is similar to the problem reported on THRIFT-1944. > Both TSimpleServer and TThreadedServer as of 0.9.2 have this capability. -- This message was sent by Atlassian JIRA (v6.3.4#6332)