Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
0.9.1
-
None
-
windows7 64bit pc. ipv4 and ipv6 pc.can't use
-
Patch Available
Description
net error no : 10093
Attachments
Attachments
Issue Links
- duplicates
-
THRIFT-2442 Fix issue with cpp server on Windows (WSAStartup wasn't called)
- Closed
how can i commit patch?
I fix this bug.
TServerSocket.cpp update some code。
{ printf("WSAStartup() error\n"); }at void TServerSocket::listen() add code:
// init Winsock add by alan 20140719
WSADATA wsaData;
int nStatus = WSAStartup(MAKEWORD(2,2), &wsaData);
if (NO_ERROR != nStatus)
and
hints.ai_family = PF_UNSPEC;
update to:
hints.ai_family = AF_INET; // add by alan 20140719