Skip to content

[cahandler] Skip CLIENT_INFO on reconnects for legacy softcams#3700

Merged
atvcaptain merged 1 commit intoopenatv:masterfrom
WXbet:fix-cccam
Feb 9, 2026
Merged

[cahandler] Skip CLIENT_INFO on reconnects for legacy softcams#3700
atvcaptain merged 1 commit intoopenatv:masterfrom
WXbet:fix-cccam

Conversation

@WXbet
Copy link
Contributor

@WXbet WXbet commented Feb 9, 2026

CLIENT_INFO was sent on every new connection to .listen.camd.socket, causing repeated "error in capmt length field read 4" in legacy softcam logs and risking disconnect loops with softcams that cannot parse Protocol-3 data.

Track handshake state at eDVBCAHandler level:

  • First connection: send CLIENT_INFO to probe for Protocol-3
  • If SERVER_INFO received: mark Protocol-3 established, always send CLIENT_INFO on reconnects
  • If no SERVER_INFO: legacy client detected, skip CLIENT_INFO on subsequent connections

CLIENT_INFO was sent on every new connection to .listen.camd.socket,
causing repeated "error in capmt length field read 4" in legacy softcam
logs and risking disconnect loops with softcams that cannot parse
Protocol-3 data.

Track handshake state at eDVBCAHandler level:
- First connection: send CLIENT_INFO to probe for Protocol-3
- If SERVER_INFO received: mark Protocol-3 established, always send
  CLIENT_INFO on reconnects
- If no SERVER_INFO: legacy client detected, skip CLIENT_INFO on
  subsequent connections
@atvcaptain atvcaptain merged commit d2d32fc into openatv:master Feb 9, 2026
3 of 4 checks passed
atvcaptain pushed a commit that referenced this pull request Feb 9, 2026
CLIENT_INFO was sent on every new connection to .listen.camd.socket,
causing repeated "error in capmt length field read 4" in legacy softcam
logs and risking disconnect loops with softcams that cannot parse
Protocol-3 data.

Track handshake state at eDVBCAHandler level:
- First connection: send CLIENT_INFO to probe for Protocol-3
- If SERVER_INFO received: mark Protocol-3 established, always send
  CLIENT_INFO on reconnects
- If no SERVER_INFO: legacy client detected, skip CLIENT_INFO on
  subsequent connections
@WXbet WXbet deleted the fix-cccam branch February 9, 2026 15:35
jbleyel added a commit that referenced this pull request Feb 12, 2026
* master:
  Use windowTitle parameter instead of setTitle after init of MessageBox
  [CAHandler] Send CMD_NOT_SELECTED when last service is unregistered
  [SoftCSA] Suppress activation when CI module handles decryption
  Revert "[SoftCSA] Deactivate software descrambling when CI module handles decryption"
  pot update
  translation update
  [servicedvb] * re-enable precise recovery feature to fix time shift issues * add extra setting for hardware latency correction for DM9x0
  [ChannelSelection] Fix new crash https://www.opena.tv/viewtopic.php?p=597368&sid=6f7566164c0518ad0230b534dfb5889e#p597368
  translation update
  [SoftCSA] Add double-buffered keys to eliminate data race in descrambling (#3702)
  [cahandler] Skip CLIENT_INFO on reconnects for legacy softcams (#3700)
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.

2 participants

Comments