Thanh Do created HDFS-7861: ------------------------------ Summary: Revisit Windows socket API compatibility Key: HDFS-7861 URL: https://issues.apache.org/jira/browse/HDFS-7861 Project: Hadoop HDFS Issue Type: Sub-task Reporter: Thanh Do
Windows socket API is somewhat different from its POSIX counter part (as described here: http://tangentsoft.net/wskfaq/articles/bsd-compatibility.html). We should address the compatibility issue in this JIRA. For instance, in Windows, {{WSAStartup}} should be called before any other socket APIs for the APIs to work correctly. Moreover, as Winsock API does not return error code in {{errno}} variables, {{perror}} does not work as in Posix systems. We should use {{WSAGetLastErrorMessage}} instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)