Skip to content

Conversation

@emadum
Copy link
Contributor

@emadum emadum commented Dec 1, 2020

This PR ensures that awaitable isMaster handshakes respect an unlimited timeout (connectionTimeoutMS=0) as per the SDAM specification section on socket timeouts:

Clients MUST use connectTimeoutMS as the timeout for the connection handshake. When connectTimeoutMS=0, the timeout is unlimited and MUST remain unlimited for awaitable isMaster replies. Otherwise, connectTimeoutMS is non-zero and clients MUST use connectTimeoutMS + heartbeatFrequencyMS as the timeout for awaitable isMaster replies.

NODE-2874

(port of #2627 for 4.0)

@emadum emadum merged commit 8d44cc2 into master Dec 1, 2020
@emadum emadum deleted the NODE-2874/master/awaitable-ismaster-timeout branch December 1, 2020 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants