[
https://issues.apache.org/jira/browse/THRIFT-3502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076613#comment-15076613
]
ASF GitHub Bot commented on THRIFT-3502:
----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/thrift/pull/761
> C++ TServerSocket passes small buffer to getsockname
> ----------------------------------------------------
>
> Key: THRIFT-3502
> URL: https://issues.apache.org/jira/browse/THRIFT-3502
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Environment: Microsoft Visual Studio 2015
> Reporter: Jeremy Spiegel
>
> TServerSocket::listen is using a struct sockaddr instead of a struct
> sockaddr_storage when calling getsockname. It then fails to get the bound
> port number when the configured port is 0. See the following stackoverflow
> post:
> http://stackoverflow.com/questions/14624427/wsaefault-error-when-use-getsockname-function
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)