File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,8 +490,8 @@ you'll want to add this cipher to your `ssl_opts`:
490
490
491
491
## Timeout
492
492
493
- The `:timeout` option is only used to specify the timeout for receiving data on the tcp layer. The default value is 15 seconds .
494
- The connection pool defines separate timeout values.
493
+ The `:timeout` option sets the maximum time that the caller is allowed to hold the connection’s state (to send and to receive data) .
494
+ The default value is 15 seconds. The connection pool defines additional timeout values.
495
495
You can use the `:timeout` as a global option to override the default value:
496
496
497
497
```elixir
@@ -506,7 +506,7 @@ using the `:timeout` option, when running a single command:
506
506
Mongo.find(conn, "dogs", %{}, timeout: 120_000)
507
507
```
508
508
509
- Now the driver will use 120 seconds for the timeout.
509
+ Now the driver will use 120 seconds as the timeout for the single query .
510
510
511
511
## Change Streams
512
512
You can’t perform that action at this time.
0 commit comments