Skip to content

Commit a6907bd

Browse files
authored
DOCSP-25508: retry logic (#204)
* adds autobuilder action * DOCSP-25508: retryable logic * CC PR fixes 1 * reference fix * add title and wording tweak
1 parent 598c0d8 commit a6907bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/fundamentals/connection.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,16 @@ that Context deadline for the operation. If the context does not have a
245245
deadline, the driver derives a new Context from the given Context using
246246
the ``Timeout`` option set on the ``Client``.
247247

248+
.. note:: Retries under Timeout Specification
249+
250+
With default settings, if you set a ``Timeout`` option on your ``Client``
251+
and your operation requires a retry, the driver retries the operation
252+
as many times as possible before the timeout expires. Once the timeout
253+
expires, the driver returns a timeout error. Versions 1.1 and later
254+
of the {+driver-short+} enable retryable reads and writes by default.
255+
See the Server manual for more information about :ref:`retryable
256+
reads <retryable-reads>` and :manual:`retryable writes </core/retryable-writes/>`.
257+
248258
The following code shows how to set the ``Timeout`` option on a ``Client``
249259
with the ``SetTimeout`` option:
250260

0 commit comments

Comments
 (0)