Skip to content

fix: security S1-S4 — deadlines, MaxMessageSize, same-origin - #3

Merged
kolkov merged 1 commit into
mainfrom
fix/security-s1-s4
Sep 10, 2026
Merged

kolkov merged 1 commit into
mainfrom
fix/security-s1-s4

Conversation

@kolkov

@kolkov kolkov commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Fable 5.1 validated clean.

S1: ReadTimeout/WriteTimeout (default 0/10s). ReadTimeout opt-in.
S2: MaxMessageSize (default 4MB) in readFrame BEFORE allocation.
S3: checkSameOrigin by Host only — TLS proxy safe.
S4: readFrame uses min(64MB, maxMessageSize).
Fix: TestStress_MemoryPressure uint64 overflow on GC.
Fix: TestStress_LargeMessages uses MaxMessageSize:16MB.
Doc: SSE Hub.Run WARNING about slow-client blocking.
All stress tests guarded with testing.Short().
@kolkov
kolkov merged commit 3c342b5 into main Sep 10, 2026
@kolkov
kolkov deleted the fix/security-s1-s4 branch September 10, 2026 21:10
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