feat(core): WS client-mode masking, zero-copy header iteration, shared I/O relay buffer #1

Merged
Relism merged 1 commits from feature/core/ws-client-mode-io-reuse into master 2026-08-09 20:38:20 +00:00
Owner
  • WebSocketSession supports client-mode outgoing frame masking (RFC 6455) via
    in-place XOR, reusing the unmask routine already used for inbound frames.
  • HeaderMap gains an allocation-free forEach(HeaderConsumer) for callers that
    must handle an open-ended set of header names (e.g. proxying).
  • HttpServer relays streaming/chunked response bodies through a shared
    per-connection ThreadLocal buffer instead of relying on InputStream#transferTo
    (which allocates internally) or a fresh byte[8192] per chunked write.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

- WebSocketSession supports client-mode outgoing frame masking (RFC 6455) via in-place XOR, reusing the unmask routine already used for inbound frames. - HeaderMap gains an allocation-free forEach(HeaderConsumer) for callers that must handle an open-ended set of header names (e.g. proxying). - HttpServer relays streaming/chunked response bodies through a shared per-connection ThreadLocal buffer instead of relying on InputStream#transferTo (which allocates internally) or a fresh byte[8192] per chunked write. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Relism added 1 commit 2026-08-09 20:38:16 +00:00
feat(core): WS client-mode masking, zero-copy header iteration, shared I/O relay buffer
CI / Build & Test (push) Failing after 6m7s
CI / Build & Test (pull_request) Failing after 4m56s
a037456634
- WebSocketSession supports client-mode outgoing frame masking (RFC 6455) via
  in-place XOR, reusing the unmask routine already used for inbound frames.
- HeaderMap gains an allocation-free forEach(HeaderConsumer) for callers that
  must handle an open-ended set of header names (e.g. proxying).
- HttpServer relays streaming/chunked response bodies through a shared
  per-connection ThreadLocal buffer instead of relying on InputStream#transferTo
  (which allocates internally) or a fresh byte[8192] per chunked write.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Relism merged commit bf2d54ca1a into master 2026-08-09 20:38:20 +00:00
Relism deleted branch feature/core/ws-client-mode-io-reuse 2026-08-09 20:38:21 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Relism/Flash5#1