From 5e5aa50bb7140a15fe92b286e8f20844617a1bad Mon Sep 17 00:00:00 2001 From: jsteemann Date: Mon, 8 May 2017 15:57:20 +0200 Subject: [PATCH] remove obsolete comment --- lib/Basics/socket-utils.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/Basics/socket-utils.cpp b/lib/Basics/socket-utils.cpp index 69be59356f..ac9d11ac03 100644 --- a/lib/Basics/socket-utils.cpp +++ b/lib/Basics/socket-utils.cpp @@ -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) {