1
0
Fork 0

remove obsolete comment

This commit is contained in:
jsteemann 2017-05-08 15:57:20 +02:00
parent 5b32a8162d
commit 5e5aa50bb7
1 changed files with 0 additions and 13 deletions

View File

@ -51,19 +51,6 @@ int TRI_closesocket(TRI_socket_t s) {
if (res != 0) {
LOG_TOPIC(WARN, arangodb::Logger::FIXME) << "socket close error: " << WSAGetLastError();
}
// We patch libev on Windows lightly to not really distinguish between
// socket handles and file descriptors, therefore, we do not have to do the
// following any more:
// if (s.fileDescriptor != -1) {
// res = _close(s.fileDescriptor);
// "To close a file opened with _open_osfhandle, call _close."
// The underlying handle is also closed by a call to _close,
// so it is not necessary to call the Win32 function CloseHandle
// on the original handle.
// However, we do want to do the special shutdown/recv magic above
// because only then we can reuse the port quickly, which we want
// to do directly after a port test.
// }
}
#else
if (s.fileDescriptor != TRI_INVALID_SOCKET) {