Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionPolicy: Refactors Code to Reduce Default Request Timeout to 6 Seconds. #3902

Merged
2 commits merged into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
kundadebdatta marked this conversation as resolved.
Show resolved Hide resolved
// 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