Jeremy Spiegel created THRIFT-3502: -------------------------------------- Summary: 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)