WSAStartup should be called before using any other socket functions. BindListenPort is not called if not listening, thus move it to init.
Closes #2585.
WSAStartup should be called before using any other socket
functions. BindListenPort is not called if not listening.
Closes #2585.
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/d23fa49c52e9e0310f938379c5af91f0b4e5fe46 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
457 | + // Initialize Windows Sockets 458 | + WSADATA wsadata; 459 | + int ret = WSAStartup(MAKEWORD(2,2), &wsadata); 460 | + if (ret != NO_ERROR) 461 | + { 462 | + return InitError(strprintf("Error: TCP/IP socket library failed to start (WSAStartup returned error %d)", ret));
Could this be translated?
It could; but IMO doesn't make sense. The chance of winsock failing initialization is very small, not worth adding an extra (and complex) message to translate.
Compiled in and still working :), so ACK.