Skip to content

Commit

Permalink
SERVER-1929 Prevent outgoing heartbeat ports from closing on stepdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Oct 11, 2012
1 parent 58f119e commit 9a6aa4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mongo/db/repl/connections.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ namespace mongo {
cc->_logLevel = 2;
}

void tagPort() {
MessagingPort& mp = cc->port();
mp.tag |= 1;
}

void setTimeout(time_t timeout) {
_timeout = timeout;
cc->setSoTimeout(_timeout);
Expand All @@ -115,6 +120,7 @@ namespace mongo {
return false;
}
connInfo->connected = true;
connInfo->tagPort();

// if we cannot authenticate against a member, then either its key file
// or our key file has to change. if our key file has to change, we'll
Expand Down

0 comments on commit 9a6aa4f

Please sign in to comment.