Skip to content

Fix encrypted connection decrypt failures and stale CMClient events - #1658

Merged
JustArchi merged 3 commits into
masterfrom
cm-connection-fixes
Nov 5, 2026
Merged

JustArchi merged 3 commits into
masterfrom
cm-connection-fixes

Conversation

@xPaw

@xPaw xPaw commented Nov 5, 2026

Copy link
Copy Markdown
Member

Fixes #1005.

  • EnvelopeEncryptedConnection disconnects when an incoming packet fails to decrypt, instead of the exception being logged by the transport's read loop while it keeps reading a stream it can no longer decrypt.
  • CMClient ignores Connected and NetMsgReceived from a connection that has already been released, so a late event no longer dereferences a null connection or processes messages after Disconnected.

@xPaw
xPaw requested a review from yaakov-h November 5, 2026 09:49
@xPaw
xPaw force-pushed the cm-connection-fixes branch from 39c4dfe to d446eac Compare November 5, 2026 10:04
Comment thread SteamKit2/SteamKit2/Steam/CMClient.cs Resolved

@JustArchi JustArchi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@JustArchi

Copy link
Copy Markdown
Member

If somebody asks why I'm merging this, it's totally not related to xPaw holding me at gunpoint or something, I promise.

@JustArchi
JustArchi merged commit 10f35ec into master Nov 5, 2026
17 checks passed
@JustArchi
JustArchi deleted the cm-connection-fixes branch November 5, 2026 23:28
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.

Silent exceptions in TcpConnection

3 participants