Skip to content

Raise default proxy response buffer to 16 MB#120

Merged
TrevorBasinger merged 1 commit into
mainfrom
cg/raise-proxy-buffer
May 22, 2026
Merged

Raise default proxy response buffer to 16 MB#120
TrevorBasinger merged 1 commit into
mainfrom
cg/raise-proxy-buffer

Conversation

@christophergeyer
Copy link
Copy Markdown
Member

Summary

  • Increase DEFAULT_RESPONSE_BUFFER_BYTES from 1 MB to 16 MB
  • Benchmarks show 8 MB GET overhead drops from +37ms (+39%) to +14ms (+14.5%)
  • Memory cost is bounded: 16 MB per concurrent proxied request
  • Users can still override via ROAR_PROXY_BUFFER_RESPONSE_BYTES

Test plan

  • Run proxy integration tests to verify no regressions
  • Confirm 8 MB GET latency improvement with bench_proxy
  • Verify ROAR_PROXY_BUFFER_RESPONSE_BYTES env override still works

🤖 Generated with Claude Code

Increase DEFAULT_RESPONSE_BUFFER_BYTES from 1 MB to 16 MB. Benchmarks
show 8 MB GET overhead drops from +37ms (+39%) to +14ms (+14.5%).
Memory cost is bounded: 16 MB per concurrent proxied request. Users can
still override via ROAR_PROXY_BUFFER_RESPONSE_BYTES.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TrevorBasinger TrevorBasinger merged commit 293ed30 into main May 22, 2026
12 checks passed
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.

3 participants