Skip to content

Commit 3cc886d

Browse files
p-mongop
andauthored
RUBY-2649 Implement cursor pinning to services
(#2300) * RUBY-2649 Implement cursor pinning to services * work around RUBY-2727 * remove connections from pool when requested with service_id Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 8809fb6 commit 3cc886d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/reference/create-client.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,14 @@ Ruby Options
535535
- ``Logger``
536536

537537
* - ``:max_idle_time``
538-
- The maximum seconds a socket can remain idle since it has been checked in to the pool.
538+
- The maximum time, in seconds, that a connection can be idle before it
539+
is closed by the connection pool.
540+
541+
*Warning:* when connected to a load balancer, the driver uses existing
542+
connections for iterating cursors (which includes change streams)
543+
and executing transactions. Setting an idle time via this option may
544+
cause the driver to close connections that are needed for subsequent
545+
operations, causing those operations to fail.
539546
- ``Integer``
540547
- none
541548

0 commit comments

Comments
 (0)