Skip to content

Commit

Permalink
DRIVERS-2868 Include min rtt in adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Jan 30, 2025
1 parent eb3396b commit 5d4ea30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ If `timeoutMS` is set, drivers MUST apply it to the original operation. Drivers
value to each `next` call on the resulting cursor. Helpers for operations that create tailable awaitData cursors MUST
also support the `maxAwaitTimeMS` option. Drivers MUST error if this option is set, `timeoutMS` is set to a non-zero
value, and `maxAwaitTimeMS` is greater than or equal to `timeoutMS`. If this option is set, drivers MUST use
`min(maxAwaitTimeMS, remaining timeoutMS)` as the `maxTimeMS` field on `getMore` commands.
`min(maxAwaitTimeMS, remaining timeoutMS - minRoundTripTime)` as the `maxTimeMS` field on `getMore` commands.

See [Tailable cursor behavior](#tailable-cursor-behavior) for rationale regarding both non-awaitData and awaitData
cursors.
Expand Down

0 comments on commit 5d4ea30

Please sign in to comment.