Fix WebSocket limit for large agent messages #45

Merged
steve merged 1 commits from fix-issue-44-websocket-read-limit into main 2026-08-22 10:48:32 +01:00
Owner

Summary

  • define an explicit 8 MiB bound for agent/server WebSocket envelopes
  • apply the same read limit on both server and agent connections
  • verify payloads above coder/websocket’s 32 KiB default are accepted in both directions
  • verify a large snapshots.report reaches the server projection

The limit remains bounded to protect both peers from unbounded allocation. Chunking very large projections/log events remains a separate future hardening option.

Verification

  • go test ./...
  • go vet ./...
  • git diff --check

Fixes #44

## Summary - define an explicit 8 MiB bound for agent/server WebSocket envelopes - apply the same read limit on both server and agent connections - verify payloads above coder/websocket’s 32 KiB default are accepted in both directions - verify a large snapshots.report reaches the server projection The limit remains bounded to protect both peers from unbounded allocation. Chunking very large projections/log events remains a separate future hardening option. ## Verification - go test ./... - go vet ./... - git diff --check Fixes #44
steve added 1 commit 2026-08-22 10:46:02 +01:00
fix(ws): raise bounded agent message limit
CI / Test (store) (pull_request) Successful in 6s
CI / Lint (pull_request) Failing after 20s
CI / Build (windows/amd64) (pull_request) Successful in 8s
CI / Test (rest) (pull_request) Successful in 38s
CI / Build (linux/amd64) (pull_request) Successful in 7s
CI / Build (linux/arm64) (pull_request) Successful in 8s
CI / Test (server-http) (pull_request) Successful in 1m28s
e2e / Playwright vs docker-compose (pull_request) Successful in 1m24s
74cb7f660f
steve merged commit 8ddd3456e1 into main 2026-08-22 10:48:32 +01:00
steve deleted branch fix-issue-44-websocket-read-limit 2026-08-22 10:48:32 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: steve/restic-manager#45