Skip to content

Commit f633d79

Browse files
Merge pull request #274555 from ealsur/users/ealsur/ctimeoutnet
.NET SDK: Modifying recommended value
2 parents 0567803 + 40b2f94 commit f633d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/nosql/tune-connection-configurations-net-sdk-v3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: cosmos-db
66
ms.subservice: nosql
77
ms.devlang: csharp
88
ms.topic: how-to
9-
ms.date: 06/27/2023
9+
ms.date: 05/07/2024
1010
ms.author: maquaran
1111
ms.custom: devx-track-dotnet
1212
---
@@ -49,7 +49,7 @@ Direct mode can be customized through the *CosmosClientOptions* passed to the *C
4949
| IdleTcpConnectionTimeout | By default, idle connections are kept open indefinitely. | 20m-24h | This represents the amount of idle time after which unused connections are closed. Recommended values are between 20 minutes and 24 hours. |
5050
| MaxRequestsPerTcpConnection | 30 | 30 | This represents the number of requests allowed simultaneously over a single TCP connection. When more requests are in flight simultaneously, the direct/TCP client opens extra connections. Don't set this value lower than four requests per connection or higher than 50-100 requests per connection. Applications with a high degree of parallelism per connection, with large requests or responses, or with tight latency requirements might get better performance with 8-16 requests per connection. |
5151
| MaxTcpConnectionsPerEndpoint | 65535 | 65535 | This represents the maximum number of TCP connections that may be opened to each Cosmos DB back-end. Together with MaxRequestsPerTcpConnection, this setting limits the number of requests that are simultaneously sent to a single Cosmos DB back-end(MaxRequestsPerTcpConnection x MaxTcpConnectionPerEndpoint). Value must be greater than or equal to 16. |
52-
| OpenTcpConnectionTimeout | 5 seconds | >= 5 seconds | This represents the amount of time allowed for trying to establish a connection. When the time elapses, the attempt is canceled and an error is returned. Longer timeouts delay retries and failures. |
52+
| OpenTcpConnectionTimeout | 5 seconds | 1 second | This represents the amount of time allowed for trying to establish a connection. When the time elapses, the attempt is canceled and an error is returned. Longer timeouts delay retries and failures. |
5353
| PortReuseMode | PortReuseMode.ReuseUnicastPort | PortReuseMode.ReuseUnicastPort | This represents the client port reuse policy used by the transport stack. |
5454

5555
> [!NOTE]

0 commit comments

Comments
 (0)