diff options
Diffstat (limited to 'src/mongo/util/net/sock.cpp')
-rw-r--r-- | src/mongo/util/net/sock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp index 6d7b2d1e8f7..c728b674b0b 100644 --- a/src/mongo/util/net/sock.cpp +++ b/src/mongo/util/net/sock.cpp @@ -120,8 +120,8 @@ void setSockTimeouts(int sock, double secs) { log() << "unable to set SO_RCVTIMEO: " << errnoWithDescription(WSAGetLastError()); status = setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, reinterpret_cast<char*>(&timeout), sizeof(DWORD)); - DEV if (report && (status == SOCKET_ERROR)) log() << "unable to set SO_SNDTIMEO: " - << errnoWithDescription(WSAGetLastError()); + DEV if (report && (status == SOCKET_ERROR)) log() + << "unable to set SO_SNDTIMEO: " << errnoWithDescription(WSAGetLastError()); #else struct timeval tv; tv.tv_sec = (int)secs; @@ -547,7 +547,7 @@ void Socket::handleSendError(int ret, const char* context) { << ' ' << remoteString(); throwSocketError(SocketErrorKind::SEND_ERROR, remoteString()); } -} +} // namespace mongo void Socket::handleRecvError(int ret, int len) { if (ret == 0) { |