Skip to content

feat: Add websocket max heap guardrail#46

Open
aloukissas wants to merge 1 commit into
absinthe-graphql:mainfrom
aloukissas:feat/socket-max-heap-size
Open

feat: Add websocket max heap guardrail#46
aloukissas wants to merge 1 commit into
absinthe-graphql:mainfrom
aloukissas:feat/socket-max-heap-size

Conversation

@aloukissas

Copy link
Copy Markdown

Summary

  • Add an optional :max_heap_size socket option that caps each websocket process heap.
  • Convert byte limits to BEAM words and apply Process.flag(:max_heap_size, %{kill: true, error_logger: true}) during socket init.
  • Emit telemetry when the heap guardrail is applied, document the option, and add integration coverage.

Testing

  • mix test

@aloukissas aloukissas changed the title Add websocket max heap guardrail feat: Add websocket max heap guardrail Jul 7, 2026
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