swerver: update to v0.1.0-alpha.10 — rate-limit headers, upload fixes, H2 improvements#745
Conversation
The upload endpoint now uses postDiscard (body discard mode) — bytes are counted but never buffered. The 22MB body_buffer_size and body_buffer_count entries were dead weight.
- Bump to alpha.7 (H2 flow control fix, postDiscard body policy) - Re-enable upload test: postDiscard counts bytes without buffering, so 20MB uploads use ~0 body memory instead of 20MB per connection - Add json-tls test: third swerver process on :8081 with TLS for HTTP/1.1-over-TLS JSON endpoint validation - Dockerfile: add zlib1g-dev, expose port 8081, copy TLS H1 config
|
/benchmark -f swerver |
|
👋 |
Benchmark ResultsFramework:
Full log |
H2 send-side flow control, per-stream fair scheduling, stream-level error handling for oversized headers, /blob preencoding. Eliminates 12.8% error rate on many-headers test, +57% on large-response.
|
/benchmark -f swerver |
|
👋 |
Benchmark ResultsFramework:
Full log |
Fixes body accumulation overconsume bug that caused upload benchmarks (multiple POSTs per keep-alive connection) to stall after the first request.
|
/benchmark -f swerver |
|
👋 |
Benchmark ResultsFramework:
Full log |
…ncation, H2 POST slots
|
/benchmark -f swerver |
|
👋 |
Benchmark ResultsFramework:
Full log |
|
/benchmark -f swerver --save |
|
👋 |
|
|
|
/benchmark -f swerver --save |
|
👋 |
Benchmark ResultsFramework:
Full log |
Summary
v0.1.0-alpha.10tagpostDiscardbody policy, json-tls testKey improvements in alpha.9–10
X-RateLimit-Limit/Remaining/Retry-Afterwere dangling pointers — 0% header delivery → 99.97%MAX_PENDING_H2_BODIES32 → 128, eliminatingRST_STREAMunder concurrent POST loadBenchmark results (Docker Desktop, macOS)
Config
No config changes needed.
Test plan
validate.sh swerverpasses all 11 subscribed testsv0.1.0-alpha.10tagratelimit_header_pct99.97%