Skip to content

Fix dedicated MMS file-transfer session lifetime#80

Merged
masarray merged 2 commits into
mainfrom
fix/fault-transfer-session-lifetime
Jul 20, 2026
Merged

Fix dedicated MMS file-transfer session lifetime#80
masarray merged 2 commits into
mainfrom
fix/fault-transfer-session-lifetime

Conversation

@masarray

Copy link
Copy Markdown
Owner

Field evidence

The relay file directory is now decoded correctly (FRA00019, 119 KB, CFG/DAT/INF), but Download still failed immediately with first-chance exceptions in this order:

  • OperationCanceledException
  • InvalidOperationException
  • InvalidDataException

Root cause

The Fault Record window replaces its operation cancellation token between Scan and Download. The dedicated MMS receive pump had been linked to the Scan token, so replacing/cancelling that completed UI token stopped confirmed-service response routing while the association still appeared to be MmsInitiated.

Changes

  • require MmsInitiated + transport connected + receive pump running before reusing the dedicated association
  • reconnect stale associations instead of trusting state alone
  • rebind the engine receive pump to the association lifetime immediately after connect
  • include session and receive-routing state in failed download details

The transport is already file-type agnostic: the service downloads each returned remote path through MMS FileOpen/FileRead/FileClose. COMTRADE is only the grouping/presentation layer, so changing the UI to “all file types” would not fix this transport-lifetime defect.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@masarray
masarray merged commit 251c4f0 into main Jul 20, 2026
1 check passed
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.

1 participant