Skip to content

Commit

Permalink
Clarify zero-case connectTimeoutMS in SDAM setupConnection PC (mongod…
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez authored Aug 30, 2024
1 parent e9f02f3 commit e651ebe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/server-discovery-and-monitoring/server-monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ class Monitor(Thread):
# Server API versioning implies that the server supports hello.
helloOk = stableApi != Null
connection = new Connection(serverAddress)
set connection timeout to connectTimeoutMS
if connectTimeoutMS != 0:
set connection timeout to connectTimeoutMS

# Do any potentially blocking operations after releasing the mutex.
create the socket and perform connection handshake
Expand Down Expand Up @@ -726,7 +727,8 @@ class RttMonitor(Thread):
# Server API versioning implies that the server supports hello.
helloOk = stableApi != Null
connection = new Connection(serverAddress)
set connection timeout to connectTimeoutMS
if connectTimeoutMS != 0:
set connection timeout to connectTimeoutMS
perform connection handshake

def pingServer():
Expand Down

0 comments on commit e651ebe

Please sign in to comment.