Skip to content

Commit

Permalink
SERVER-23338 Don't fassert down the process if the listen socket clos…
Browse files Browse the repository at this point in the history
…es on Windows
  • Loading branch information
acmorrow committed Mar 25, 2016
1 parent 60f636a commit 4a38dcf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/mongo/util/net/listen.cpp
Expand Up @@ -452,15 +452,15 @@ void Listener::initAndListen() {
if (status == SOCKET_ERROR) {
const int mongo_errno = WSAGetLastError();

// During shutdown, we may fail to listen on the socket if it has already
// been closed
if (inShutdown()) {
return;
// We may fail to listen on the socket if it has
// already been closed. If we are not in shutdown,
// that is possibly interesting, so log an error.
if (!inShutdown()) {
error() << "Windows WSAEventSelect returned "
<< errnoWithDescription(mongo_errno) << endl;
}

error() << "Windows WSAEventSelect returned " << errnoWithDescription(mongo_errno)
<< endl;
fassertFailed(16727);
return;
}
}

Expand Down

0 comments on commit 4a38dcf

Please sign in to comment.