Skip to content

feat: raise the SSDP M-SEARCH session cap to 64#52

Merged
sbogomolov merged 1 commit into
mainfrom
parity/ssdp-session-cap
Jul 9, 2026
Merged

feat: raise the SSDP M-SEARCH session cap to 64#52
sbogomolov merged 1 commit into
mainfrom
parity/ssdp-session-cap

Conversation

@sbogomolov

Copy link
Copy Markdown
Owner

Raise the SSDP M-SEARCH session cap from 32 to 64.

MAX_SESSIONS bounds the in-flight M-SEARCH sessions_ table globally (across all SSDP groups); a search past it is dropped before reserving a response port. 32 was conservative — 64 gives more headroom for bursty discovery on busier segments while staying bounded.

The constant becomes public (matching DialProxy::MAX_CONNECTIONS), and the two cap tests (CapDropsSessionsBeyondTheLimit, SessionCapIsGlobalAcrossGroups) now reference it symbolically (MAX_SESSIONS / MAX_SESSIONS + 1). They pin the enforcement independently of the value, so a future bump needs no test edit.

Verification

  • Native unit suite green (Debug, ASan/UBSan).
  • Docker/Linux unit suite green (Debug, ASan/UBSan).

MAX_SESSIONS bounds the in-flight M-SEARCH sessions_ table globally,
across all groups. 32 was conservative; 64 gives more headroom for
bursty discovery on busier segments while staying bounded.

Make the constant public (like DialProxy's MAX_CONNECTIONS) and have the
two cap tests reference it symbolically, so they pin the enforcement
independently of the value and a future bump needs no test edit.
@sbogomolov
sbogomolov merged commit e1acae2 into main Jul 9, 2026
17 checks passed
@sbogomolov
sbogomolov deleted the parity/ssdp-session-cap branch July 9, 2026 18:56
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