Skip to content

Direct: Fixes Direct/TCP connection limit validation#5883

Closed
orange-dot wants to merge 1 commit into
Azure:mainfrom
orange-dot:issue-5878-direct-tcp-validation
Closed

Direct: Fixes Direct/TCP connection limit validation#5883
orange-dot wants to merge 1 commit into
Azure:mainfrom
orange-dot:issue-5878-direct-tcp-validation

Conversation

@orange-dot
Copy link
Copy Markdown

@orange-dot orange-dot commented May 19, 2026

Summary

  • Validates MaxRequestsPerTcpConnection rejects values below the documented minimum of 4.
  • Validates MaxTcpConnectionsPerEndpoint rejects values below the documented minimum of 16.
  • Covers both CosmosClientOptions and ConnectionPolicy paths.

Fixes

Tests

  • DOTNET_ROLL_FORWARD=Major dotnet test Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj --filter "VerifyCosmosClientOptionsDirectTcpConnectionLimitsValidateMinimumValues|VerifyConnectionPolicyDirectTcpConnectionLimitsValidateMinimumValues" --no-restore /p:EnableSourceControlManagerQueries=false
  • DOTNET_ROLL_FORWARD=Major dotnet test Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj --filter "CosmosClientOptionsUnitTests" --no-restore /p:EnableSourceControlManagerQueries=false

@orange-dot
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Direct: MaxTcpConnectionsPerEndpoint does not validate documented minimum value constraint

1 participant