Skip to content

Commit

Permalink
ConnectionPolicy: Refactors Code to Reduce Default Request Timeout to…
Browse files Browse the repository at this point in the history
… 6 Seconds. (#3902)

* Code changes to reduce default request timeout to 6 seconds.

* Code changes to update API doc default request timeout to 6 seconds.
  • Loading branch information
kundadebdatta authored Jun 10, 2023
1 parent d1dbe94 commit 28e03c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/ConnectionPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Cosmos
/// </summary>
internal sealed class ConnectionPolicy
{
private const int defaultRequestTimeout = 10;
private const int defaultRequestTimeout = 6;
// defaultMediaRequestTimeout is based upon the blob client timeout and the retry policy.
private const int defaultMediaRequestTimeout = 300;
private const int defaultMaxConcurrentFanoutRequests = 32;
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/CosmosClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public int GatewayModeMaxConnectionLimit
/// Gets the request timeout in seconds when connecting to the Azure Cosmos DB service.
/// The number specifies the time to wait for response to come back from network peer.
/// </summary>
/// <value>Default value is 1 minute.</value>
/// <value>Default value is 6 seconds.</value>
/// <seealso cref="CosmosClientBuilder.WithRequestTimeout(TimeSpan)"/>
public TimeSpan RequestTimeout { get; set; }

Expand Down

0 comments on commit 28e03c8

Please sign in to comment.