You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Aki Sukegawa (JIRA)" <ji...@apache.org> on 2016/01/02 19:13:40 UTC
[jira] [Resolved] (THRIFT-3502) C++ TServerSocket passes small
buffer to getsockname
[ 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)