Skip to content

Conversation

edwardneal
Copy link
Contributor

@edwardneal edwardneal commented Sep 23, 2025

Description

This builds on #3603, merging TdsParserStateObjectNative. The changes here aren't particularly controversial, although I'd advise reviewing b9e2bea with a little care - this change expects each SSL protocol's value in SslProtocols to be equivalent to the OR of its client and server values in NativeProtocols.

Issues

Contributes to #1261.

Testing

Automated tests pass locally, could someone run CI please?

Duplicated in netcore by a class in TdsParserSafeHandles.Windows.cs. Remove the duplicate and add to netfx.
ReadAsyncCallback and WriteAsyncCallback only recursed.
Also sync whitespace in netfx.
Also, netfx: sync of AuthProviderInfo population to match netcore. We were assigning default values.
Also sync debug assertion for SessionHandle
NativeProtocols enum values are aligned with the SslProtocol values.
The output is only ever used to return the SSL warning, which checks whether any of each relevant SSL protocol's bits are set. Normalization of the client and server bits are irrelevant for this purpose - the SSL warning tests for both.
This is only ever called with a timeoutRemaining parameter value of GetTimeoutRemaining().
Send a null value to the native SNI by default, not an empty string
@edwardneal edwardneal requested a review from a team as a code owner September 23, 2025 21:55
@mdaigle
Copy link
Contributor

mdaigle commented Sep 24, 2025

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mdaigle mdaigle self-assigned this Sep 24, 2025
Maintained comment in Dispose method post-merge
@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@paulmedynski paulmedynski self-assigned this Sep 25, 2025
paulmedynski
paulmedynski previously approved these changes Sep 26, 2025
This guards against future changes to the SslProtocols enum
@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

codecov bot commented Sep 29, 2025

Codecov Report

❌ Patch coverage is 87.23404% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.28%. Comparing base (37d8a3f) to head (2a3c83f).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...Client/src/Interop/Windows/Sni/SniNativeWrapper.cs 75.00% 4 Missing ⚠️
...ta/SqlClient/TdsParserStateObjectNative.Windows.cs 93.54% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3631      +/-   ##
==========================================
- Coverage   66.13%   64.28%   -1.85%     
==========================================
  Files         276      270       -6     
  Lines       60765    60101     -664     
==========================================
- Hits        40184    38636    -1548     
- Misses      20581    21465     +884     
Flag Coverage Δ
addons ?
netcore 68.28% <86.95%> (+0.19%) ⬆️
netfx 64.38% <86.95%> (-5.58%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdaigle mdaigle merged commit ff511ed into dotnet:main Sep 29, 2025
236 checks passed
@mdaigle mdaigle added this to the 7.0-preview2 milestone Sep 29, 2025
@edwardneal edwardneal deleted the merge/tdsparserstateobjectnative branch September 29, 2025 16:02
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.

3 participants