Skip to content

smp server: store service with its first queue - #1978

Open
evgeny-simplex wants to merge 1 commit into
simplex-chat:masterfrom
evgeny-simplex:ep/service-store-first-queue
Open

evgeny-simplex wants to merge 1 commit into
simplex-chat:masterfrom
evgeny-simplex:ep/service-store-first-queue

Conversation

@evgeny-simplex

Copy link
Copy Markdown
Contributor

smp server:

  • the handshake looks up the service certificate and returns the stored service ID, or a new random ID for a certificate without a record
  • the service record is stored when a service session creates a queue (NEW) or subscribes a queue (SUB, NSUB); a session whose certificate is already stored with another ID gets SERVICE

queue stores:

  • getServiceId: lookup by certificate fingerprint and role (memory and Postgres)
  • the memory store returns zero queues for service subscriptions of an unknown service

tests:

  • service record is stored with its first queue
  • agent test of a service ID change: expected events on the second reconnection

@evgeny-simplex
evgeny-simplex force-pushed the ep/service-store-first-queue branch from 01b9561 to b25bf7f Compare October 26, 2026 11:39

This branch has not been deployed

No deployments
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