Skip to content

Conversation

rzikm
Copy link
Member

@rzikm rzikm commented Sep 2, 2025

Discovered while investigating #119259. AcquireClientCredentials produces other events as well, so the order in the log is misleading and makes investigations harder.

…call

Discovered while investigating #119259. `AcquireClientCredentials` produces other events as well, so the order in the log is misleading and makes investigations harder.
@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 11:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a misleading log order issue in the SslStream protocol handling. The AcquireClientCredentials call was happening before the EventSource logging, which made debugging more difficult since AcquireClientCredentials produces its own events that would appear before the "CredentialsNeeded" log message.

Key changes:

  • Reorder EventSource logging to occur before AcquireClientCredentials call
  • Move the refreshCredentialNeeded flag assignment to maintain logical flow

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@rzikm
Copy link
Member Author

rzikm commented Sep 3, 2025

/ba-g test failures are unrelated

@rzikm rzikm enabled auto-merge (squash) September 3, 2025 13:46
@rzikm rzikm merged commit 77ed0f6 into main Sep 3, 2025
84 of 88 checks passed
filipnavara pushed a commit to filipnavara/runtime that referenced this pull request Sep 5, 2025
…call (dotnet#119262)

* Fix misleading order of EventSource log and AcquireClientCredentials call

Discovered while investigating dotnet#119259. `AcquireClientCredentials` produces other events as well, so the order in the log is misleading and makes investigations harder.

* Update src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Protocol.cs
@jkotas jkotas deleted the rzikm-patch-2 branch September 8, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants