You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Akshat Aranya (JIRA)" <ji...@apache.org> on 2013/09/13 22:49:52 UTC
[jira] [Comment Edited] (THRIFT-1944) Binding to zero port
[ https://issues.apache.org/jira/browse/THRIFT-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766929#comment-13766929 ]
Akshat Aranya edited comment on THRIFT-1944 at 9/13/13 8:48 PM:
----------------------------------------------------------------
Updated patch. This applies cleanly to latest code (commit b2501a71a79304fa27dfd6d2e55b75d8eacf0cef). I also changed bzero() to std::memset() as per your suggestion.
was (Author: aaranya@gmail.com):
Updated patch.
> Binding to zero port
> --------------------
>
> Key: THRIFT-1944
> URL: https://issues.apache.org/jira/browse/THRIFT-1944
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Affects Versions: 0.9
> Environment: All platforms
> Reporter: Akshat Aranya
> Labels: bind
> Fix For: 1.0
>
> Attachments: patch-THRIFT-1944-java.patch, patch-THRIFT-1944.patch, patch-THRIFT-1944-updated.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> This patch builds upon a previously submitted patch that was not accepted (THRIFT-966). The purpose of this patch is to allow TServerSocket to bind to port zero, that is, have the server socket be assigned a port by the OS. This patch provides a way to query the port after the socket has been bound and determine the OS assigned port
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira