Skip to content

[8.0.0 Cherry-pick] Fix managed SNI TLS handshake ignoring Connect Timeout - #5078

Merged
mdaigle merged 1 commit into
release/8.0from
dev/automation/pr-5051-to-8.0.0
Nov 16, 2026
Merged

mdaigle merged 1 commit into
release/8.0from
dev/automation/pr-5051-to-8.0.0

Conversation

@github-actions

Copy link
Copy Markdown

Cherry-pick of #5051 (44be992) into release/8.0.

* Fix managed SNI TLS handshake timeout

On managed SNI the TLS handshake ran with no bound: Receive leaves the
socket read timeout infinite and AuthenticateAsClient got no token, so
a server that stalls after PRELOGIN blocked Open until the OS dropped
the socket. EnableSsl now gets a token from the remaining Connect
Timeout that closes the transport stream, and reports wait timeout
258 so MultiSubnetFailover keeps retrying within the full timeout.

* Stall TLS handshake via TdsServer
@github-actions
github-actions Bot requested a review from a team as a code owner November 16, 2026 19:04
@github-actions github-actions Bot added this to the 8.0.0 milestone Nov 16, 2026
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Nov 16, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mdaigle

mdaigle commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@mdaigle
mdaigle enabled auto-merge (squash) November 16, 2026 19:36
@mdaigle
mdaigle merged commit 9550c4f into release/8.0 Nov 16, 2026
132 of 136 checks passed
@mdaigle
mdaigle deleted the dev/automation/pr-5051-to-8.0.0 branch November 16, 2026 20:09
@github-project-automation github-project-automation Bot moved this from To triage to Done in SqlClient Board Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.11111% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.06%. Comparing base (463a45c) to head (1e270b5).
⚠️ Report is 7 commits behind head on release/8.0.

Files with missing lines Patch % Lines
...t/Data/SqlClient/ManagedSni/SniNpHandle.netcore.cs 84.21% 3 Missing ⚠️
.../SqlClient/ManagedSni/SniMarsConnection.netcore.cs 0.00% 1 Missing ⚠️
...Data/SqlClient/ManagedSni/SniMarsHandle.netcore.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           release/8.0    #5078      +/-   ##
===============================================
+ Coverage        68.97%   70.06%   +1.08%     
===============================================
  Files              314      314              
  Lines            45857    69843   +23986     
===============================================
+ Hits             31629    48933   +17304     
- Misses           14228    20910    +6682     
Flag Coverage Δ
CI-SqlClient ?
sqlclient-pr 70.06% <86.11%> (?)

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

☔ View full report in Codecov by Harness.
📢 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 mentioned this pull request Nov 16, 2026
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants