[ 
https://issues.apache.org/jira/browse/THRIFT-3502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aki Sukegawa resolved THRIFT-3502.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0

committed

> 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
>             Fix For: 1.0
>
>
> 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)

Reply via email to